From 40b7703f1c65f58f854f3e1b81203ba71ed45df4 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Thu, 30 May 2002 17:10:20 +0000 Subject: Verify that the imp can find and load .py files. --- Lib/test/test_import.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v0.12