]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Disable lib2to3 by default, unless run explicitly.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 5 Jul 2008 15:48:20 +0000 (15:48 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 5 Jul 2008 15:48:20 +0000 (15:48 +0000)
Lib/test/test_lib2to3.py

index 161b9ddd242eb68a115969bd8f3a0d7776495068..6d589d8905816e2f82396f6c6730b8a9582d2a5e 100644 (file)
@@ -2,7 +2,11 @@
 # because of running
 from lib2to3.tests import test_fixers, test_pytree, test_util
 import unittest
-from test.test_support import run_unittest
+from test.test_support import run_unittest, requires
+
+# Don't run lib2to3 tests by default since they take too long
+if __name__ != '__main__':
+    requires('lib2to3')
 
 def suite():
     tests = unittest.TestSuite()