From: Jeremy Hylton Date: Thu, 30 May 2002 17:10:20 +0000 (+0000) Subject: Verify that the imp can find and load .py files. X-Git-Tag: v2.3c1~5555 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40b7703f1c65f58f854f3e1b81203ba71ed45df4;p=thirdparty%2FPython%2Fcpython.git 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 305c297c6b16..933a3645ecbe 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)