[Python-checkins] r74589 - in python/branches/py3k/Lib/importlib/test: __main__.py regrtest.py

brett.cannon python-checkins at python.org
Sun Aug 30 10:39:57 CEST 2009

Author: brett.cannon
Date: Sun Aug 30 10:39:57 2009
New Revision: 74589

Provide module docstrings for the two main test drivers in importlib that
explain what they are for and how to use command-line arguments to tweak


Modified: python/branches/py3k/Lib/importlib/test/__main__.py
--- python/branches/py3k/Lib/importlib/test/__main__.py	(original)
+++ python/branches/py3k/Lib/importlib/test/__main__.py	Sun Aug 30 10:39:57 2009
@@ -1,3 +1,9 @@
+"""Run importlib's test suite.
+Specifying the ``--builtin`` flag will run tests, where applicable, with
+builtins.__import__ instead of importlib.__import__.
 import importlib
 from importlib.test.import_ import util
 import os.path

Modified: python/branches/py3k/Lib/importlib/test/regrtest.py
--- python/branches/py3k/Lib/importlib/test/regrtest.py	(original)
+++ python/branches/py3k/Lib/importlib/test/regrtest.py	Sun Aug 30 10:39:57 2009
@@ -1,8 +1,11 @@
 """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.
-    test___all__  # tuple being given for fromlist (looks like interpreter is
-                    doing it)
     test_builtin  # Wanting a TypeError for an integer name
     test_import  # execution bit, exception name differing, file name differing
                     between code and module (?)

More information about the Python-checkins mailing list