mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #22173: Update lib2to3 tests to use unittest test discovery.
This commit is contained in:
parent
b7354a65ce
commit
2acbae8016
7 changed files with 19 additions and 38 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue