diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-05-30 17:10:20 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-05-30 17:10:20 (GMT) |
commit | 40b7703f1c65f58f854f3e1b81203ba71ed45df4 (patch) | |
tree | b0c1f8824160b35685a26fdd4eb398c37480d2af /Lib | |
parent | 1e9abf0efd230e3d66078b4c3d0d1ed0b2f696c5 (diff) | |
download | cpython-40b7703f1c65f58f854f3e1b81203ba71ed45df4.zip cpython-40b7703f1c65f58f854f3e1b81203ba71ed45df4.tar.gz cpython-40b7703f1c65f58f854f3e1b81203ba71ed45df4.tar.bz2 |
Verify that the imp can find and load .py files.
Diffstat (limited to 'Lib')
-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) |