Back to index

python3.2  3.2.2
Public Member Functions
importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensitivityTest Class Reference

List of all members.

Public Member Functions

def find_module
def test_case_sensitive
def test_case_insensitivity

Detailed Description

Definition at line 10 of file test_case_sensitivity.py.


Member Function Documentation

Definition at line 12 of file test_case_sensitivity.py.

00012 
00013     def find_module(self):
00014         good_name = ext_util.NAME
00015         bad_name = good_name.upper()
00016         assert good_name != bad_name
00017         finder = _bootstrap._FileFinder(ext_util.PATH,
00018                                         _bootstrap._ExtensionFinderDetails())
00019         return finder.find_module(bad_name)

Here is the caller graph for this function:

Definition at line 26 of file test_case_sensitivity.py.

00026 
00027     def test_case_insensitivity(self):
00028         with support.EnvironmentVarGuard() as env:
00029             env.set('PYTHONCASEOK', '1')
00030             loader = self.find_module()
00031             self.assertTrue(hasattr(loader, 'load_module'))
00032 
00033 
00034 

Here is the call graph for this function:

Definition at line 20 of file test_case_sensitivity.py.

00020 
00021     def test_case_sensitive(self):
00022         with support.EnvironmentVarGuard() as env:
00023             env.unset('PYTHONCASEOK')
00024             loader = self.find_module()
00025             self.assertIsNone(loader)

Here is the call graph for this function:


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