[Python-checkins] r64737 - python/trunk/Lib/test/test_lib2to3.py
martin.v.loewis
python-checkins at python.org
Sat Jul 5 17:48:20 CEST 2008
Author: martin.v.loewis
Date: Sat Jul 5 17:48:20 2008
New Revision: 64737
Log:
Disable lib2to3 by default, unless run explicitly.
Modified:
python/trunk/Lib/test/test_lib2to3.py
Modified: python/trunk/Lib/test/test_lib2to3.py
==============================================================================
--- python/trunk/Lib/test/test_lib2to3.py (original)
+++ python/trunk/Lib/test/test_lib2to3.py Sat Jul 5 17:48:20 2008
@@ -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()
More information about the Python-checkins
mailing list