diff options
Diffstat (limited to 'Lib/importlib/test/source/test_path_hook.py')
-rw-r--r-- | Lib/importlib/test/source/test_path_hook.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/importlib/test/source/test_path_hook.py b/Lib/importlib/test/source/test_path_hook.py index 8697f0c9e2..374f7b6ad3 100644 --- a/Lib/importlib/test/source/test_path_hook.py +++ b/Lib/importlib/test/source/test_path_hook.py @@ -12,6 +12,10 @@ class PathHookTest(unittest.TestCase): self.assertTrue(hasattr(_bootstrap._file_path_hook(mapping['.root']), 'find_module')) + def test_empty_string(self): + # The empty string represents the cwd. + self.assertTrue(hasattr(_bootstrap._file_path_hook(''), 'find_module')) + def test_main(): from test.support import run_unittest |