Back to index

python3.2  3.2.2
Public Member Functions
importlib.test.import_.test_api.APITest Class Reference

List of all members.

Public Member Functions

def test_name_requires_rparition

Detailed Description

Test API-specific details for __import__ (e.g. raising the right
exception when passing in an int for the module name).

Definition at line 5 of file

Member Function Documentation

Definition at line 10 of file

00011     def test_name_requires_rparition(self):
00012         # Raise TypeError if a non-string is passed in for the module name.
00013         with self.assertRaises(TypeError):
00014             util.import_(42)

Here is the call graph for this function:

The documentation for this class was generated from the following file: