summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_lib2to3.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_lib2to3.py')
-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 9bd4496..3af6afa 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.support import run_unittest
+from 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()