[Python-checkins] python/dist/src/Lib/test test_import.py,1.10,1.11
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Thu, 30 May 2002 10:10:22 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv12188/Lib/test
Modified Files:
test_import.py
Log Message:
Verify that the imp can find and load .py files.
Index: test_import.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_import.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_import.py 24 Oct 2001 20:32:02 -0000 1.10
--- test_import.py 30 May 2002 17:10:20 -0000 1.11
***************
*** 70,71 ****
--- 70,76 ----
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)