summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-07-05 15:48:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-07-05 15:48:20 (GMT)
commit5a9ef426a98f725600c54952f4f427f0f886b4a0 (patch)
tree9f7f4f2f9c1a750fc5f440e607b748357efbdfb2 /Lib
parent5144ff5f78ce41415350d74a992089a9ed096051 (diff)
downloadcpython-5a9ef426a98f725600c54952f4f427f0f886b4a0.zip
cpython-5a9ef426a98f725600c54952f4f427f0f886b4a0.tar.gz
cpython-5a9ef426a98f725600c54952f4f427f0f886b4a0.tar.bz2
Disable lib2to3 by default, unless run explicitly.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_lib2to3.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py
index 161b9dd..6d589d8 100644
--- a/Lib/test/test_lib2to3.py
+++ b/Lib/test/test_lib2to3.py
@@ -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()