diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-05-30 17:10:20 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-05-30 17:10:20 +0000 |
commit | ef42212c3f116bca852aee4ba0814e9930fdc040 (patch) | |
tree | 36c9a32e21c4ab054c7a9520431409370b2f678d /Lib/test/test_import.py | |
parent | 65b6d559c18e1c48956e976708073adb4d50bf87 (diff) | |
download | cpython-ef42212c3f116bca852aee4ba0814e9930fdc040.tar.gz |
Verify that the imp can find and load .py files.
Diffstat (limited to 'Lib/test/test_import.py')
-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 305c297c6b..933a3645ec 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) |