From: Martin v. Löwis Date: Sat, 5 Jul 2008 15:48:20 +0000 (+0000) Subject: Disable lib2to3 by default, unless run explicitly. X-Git-Tag: v2.6b2~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a9ef426a98f725600c54952f4f427f0f886b4a0;p=thirdparty%2FPython%2Fcpython.git Disable lib2to3 by default, unless run explicitly. --- diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py index 161b9ddd242e..6d589d890581 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()