commit | 40b7703f1c65f58f854f3e1b81203ba71ed45df4 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Thu May 30 17:10:20 2002 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Thu May 30 17:10:20 2002 +0000 |
tree | b0c1f8824160b35685a26fdd4eb398c37480d2af | |
parent | 1e9abf0efd230e3d66078b4c3d0d1ed0b2f696c5 [diff] |
Verify that the imp can find and load .py files.
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 @@ 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)