[Python-checkins] r63532 - sandbox/trunk/2to3/lib2to3/tests/test_fixers.py

brett.cannon python-checkins at python.org
Thu May 22 05:02:43 CEST 2008


Author: brett.cannon
Date: Thu May 22 05:02:43 2008
New Revision: 63532

Log:
When testing fix_imports, no need to only test a subset of input; test it all!

Do all revisions to the sandbox need to be manually applied to the trunk?


Modified:
   sandbox/trunk/2to3/lib2to3/tests/test_fixers.py

Modified: sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_fixers.py	(original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_fixers.py	Thu May 22 05:02:43 2008
@@ -1405,21 +1405,7 @@
 
 class Test_imports(FixerTestCase):
     fixer = "imports"
-
-    modules = {"StringIO":  ("io", ["StringIO"]),
-               "cStringIO": ("io", ["StringIO"]),
-               "__builtin__" : ("builtins", ["open", "Exception",
-                                             "__debug__", "str"]),
-               "Queue": ("queue", ["Empty", "Queue", "LifoQueue"]),
-               "ConfigParser": ("configparser", ["ConfigParser",
-                                                 "NoOptionError",
-                                                 "NoSectionError"]),
-               "SocketServer": ("socketserver", ["TCPServer",
-                                                 "ForkingMixIn",
-                                                 "BaseServer"
-                                                 ]),
-               "repr": ("reprlib", ["Repr", "repr"]),
-              }
+    from ..fixes.fix_imports import MAPPING as modules
 
     def test_import_module(self):
         for old, (new, members) in self.modules.items():


More information about the Python-checkins mailing list