diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-10-29 17:24:59 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-10-29 17:24:59 (GMT) |
commit | 2acbae80165390a5be3bb12351147b8026787e13 (patch) | |
tree | e7bcbc2d4323ccefddffacb6f2de7a5e49666252 /Lib/lib2to3/tests/test_all_fixers.py | |
parent | b7354a65ce71ac39d7dec97cce4ca7afdffcb8a3 (diff) | |
download | cpython-2acbae80165390a5be3bb12351147b8026787e13.zip cpython-2acbae80165390a5be3bb12351147b8026787e13.tar.gz cpython-2acbae80165390a5be3bb12351147b8026787e13.tar.bz2 |
Issue #22173: Update lib2to3 tests to use unittest test discovery.
Diffstat (limited to 'Lib/lib2to3/tests/test_all_fixers.py')
-rw-r--r-- | Lib/lib2to3/tests/test_all_fixers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_all_fixers.py b/Lib/lib2to3/tests/test_all_fixers.py index f64b3d9..15079fe 100644 --- a/Lib/lib2to3/tests/test_all_fixers.py +++ b/Lib/lib2to3/tests/test_all_fixers.py @@ -7,12 +7,14 @@ running time. # Python imports import unittest +import test.support # Local imports from lib2to3 import refactor from . import support +@test.support.requires_resource('cpu') class Test_all(support.TestCase): def setUp(self): @@ -21,3 +23,6 @@ class Test_all(support.TestCase): def test_all_project_files(self): for filepath in support.all_project_files(): self.refactor.refactor_file(filepath) + +if __name__ == '__main__': + unittest.main() |