@@ -0,0 +1,1304 @@
+%22%22%22Run Python's standard test suite using importlib.__import__.%0A%0AXXX FAILING%0A    test___all__  # tuple being given for fromlist (looks like interpreter is%0A                    doing it)%0A    test_builtin  # Wanting a TypeError for an integer name%0A    test_import  # execution bit, exception name differing, file name differing%0A                    between code and module (?)%0A    test_importhooks  # package not set in _gcd_import() but level %3E 0%0A    test_pep3120  # Difference in exception%0A    test_runpy  # Importing sys.imp.eric raises AttributeError instead of%0A                    ImportError (as does any attempt to import a sub-module%0A                    from a non-package, e.g. tokenize.menotreal)%0A%0A%22%22%22%0Aimport importlib%0Aimport sys%0Afrom test import regrtest%0A%0Aif __name__ == '__main__':%0A    __builtins__.__import__ = importlib.__import__%0A%0A    exclude = %5B'--exclude',%0A                'test_frozen', # Does not expect __loader__ attribute%0A                'test_pkg',  # Does not expect __loader__ attribute%0A                'test_pydoc', # Does not expect __loader__ attribute%0A              %5D%0A    # No programmatic way to specify tests to exclude%0A    sys.argv.extend(exclude)%0A%0A    # verbose=True, quiet=False for all failure info%0A    # tests=%5B...%5D for specific tests to run%0A    regrtest.main(quiet=True)%0A

Add a test file to importlib that runs regrtest using importlib.__import__.