mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Issue #15168: Move importlb.test to test.test_importlib.
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.
This commit is contained in:
parent
4afc1c08d0
commit
45a5e3afe5
43 changed files with 33 additions and 38 deletions
17
Lib/test/test_importlib/regrtest.py
Normal file
17
Lib/test/test_importlib/regrtest.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""Run Python's standard test suite using importlib.__import__.
|
||||
|
||||
Tests known to fail because of assumptions that importlib (properly)
|
||||
invalidates are automatically skipped if the entire test suite is run.
|
||||
Otherwise all command-line options valid for test.regrtest are also valid for
|
||||
this script.
|
||||
|
||||
"""
|
||||
import importlib
|
||||
import sys
|
||||
from test import regrtest
|
||||
|
||||
if __name__ == '__main__':
|
||||
__builtins__.__import__ = importlib.__import__
|
||||
sys.path_importer_cache.clear()
|
||||
|
||||
regrtest.main(quiet=True, verbose2=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue