diff options
Diffstat (limited to 'Lib/test/test_importlib/regrtest.py')
-rw-r--r-- | Lib/test/test_importlib/regrtest.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/regrtest.py b/Lib/test/test_importlib/regrtest.py new file mode 100644 index 0000000..a5be11f --- /dev/null +++ b/Lib/test/test_importlib/regrtest.py @@ -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) |