From 5a9ef426a98f725600c54952f4f427f0f886b4a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 5 Jul 2008 15:48:20 +0000 Subject: [PATCH] Disable lib2to3 by default, unless run explicitly. --- Lib/test/test_lib2to3.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py index 161b9ddd24..6d589d8905 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() -- 2.40.0