diff options
-rw-r--r-- | Lib/test/test_import.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 305c297..933a364 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -69,3 +69,8 @@ try: test_with_extension(ext) finally: del sys.path[0] + +# Verify that the imp module can correctly load and find .py files +import imp +x = imp.find_module("os") +os = imp.load_module("os", *x) |