Disable lib2to3 by default, unless run explicitly.

This commit is contained in:
Martin v. Löwis 2008-07-05 15:48:20 +00:00
parent 5144ff5f78
commit 5a9ef426a9
1 changed files with 5 additions and 1 deletions

View File

@ -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()