mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Verify that the imp can find and load .py files.
This commit is contained in:
parent
1e9abf0efd
commit
40b7703f1c
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue