summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/regrtest.py
blob: 98c815c191f39178c0c17d37469a2e77266d7476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 libregrtest

if __name__ == '__main__':
    __builtins__.__import__ = importlib.__import__
    sys.path_importer_cache.clear()

    libregrtest.main(quiet=True, verbose2=True)