]> granicus.if.org Git - python/commitdiff
Verify that the imp can find and load .py files.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 30 May 2002 17:10:20 +0000 (17:10 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 30 May 2002 17:10:20 +0000 (17:10 +0000)
Lib/test/test_import.py

index 305c297c6b169ae1d285bebf6306802d81253800..933a3645ecbecc4c3e9cd28cd83edd1910081ef1 100644 (file)
@@ -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)