Issue #22173: Update lib2to3 tests to use unittest test discovery.

This commit is contained in:
Zachary Ware 2014-10-29 12:24:59 -05:00
parent b7354a65ce
commit 2acbae8016
7 changed files with 19 additions and 38 deletions

View file

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