mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Disable lib2to3 by default, unless run explicitly.
This commit is contained in:
parent
5144ff5f78
commit
5a9ef426a9
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue