| 1 | n/a | """Run Python's standard test suite using importlib.__import__. |
|---|
| 2 | n/a | |
|---|
| 3 | n/a | Tests known to fail because of assumptions that importlib (properly) |
|---|
| 4 | n/a | invalidates are automatically skipped if the entire test suite is run. |
|---|
| 5 | n/a | Otherwise all command-line options valid for test.regrtest are also valid for |
|---|
| 6 | n/a | this script. |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | """ |
|---|
| 9 | n/a | import importlib |
|---|
| 10 | n/a | import sys |
|---|
| 11 | n/a | from test import regrtest |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | if __name__ == '__main__': |
|---|
| 14 | n/a | __builtins__.__import__ = importlib.__import__ |
|---|
| 15 | n/a | sys.path_importer_cache.clear() |
|---|
| 16 | n/a | |
|---|
| 17 | n/a | regrtest.main(quiet=True, verbose2=True) |
|---|