ยปCore Development>Code coverage>Lib/lib2to3/tests/test_all_fixers.py

Python code coverage for Lib/lib2to3/tests/test_all_fixers.py

#countcontent
1n/a"""Tests that run all fixer modules over an input stream.
2n/a
3n/aThis has been broken out into its own test module because of its
4n/arunning time.
5n/a"""
6n/a# Author: Collin Winter
7n/a
8n/a# Python imports
9n/aimport unittest
10n/aimport test.support
11n/a
12n/a# Local imports
13n/afrom . import support
14n/a
15n/a
16n/a@test.support.requires_resource('cpu')
17n/aclass Test_all(support.TestCase):
18n/a
19n/a def setUp(self):
20n/a self.refactor = support.get_refactorer()
21n/a
22n/a def test_all_project_files(self):
23n/a for filepath in support.all_project_files():
24n/a self.refactor.refactor_file(filepath)
25n/a
26n/aif __name__ == '__main__':
27n/a unittest.main()