diff options
author | Brett Cannon <brett@python.org> | 2013-06-13 01:25:59 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-13 01:25:59 (GMT) |
commit | 3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237 (patch) | |
tree | 5ef61b4c8c1b5bfaaafb1e1e0cd03afe7971caf7 /Lib/test/test_fileinput.py | |
parent | e382b5868a4daca614589270b6b3fe5c50059986 (diff) | |
download | cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.zip cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.gz cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.bz2 |
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r-- | Lib/test/test_fileinput.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py index c42e3e8..c5e57d4 100644 --- a/Lib/test/test_fileinput.py +++ b/Lib/test/test_fileinput.py @@ -835,22 +835,6 @@ class Test_hook_encoded(unittest.TestCase): self.assertIs(kwargs.pop('encoding'), encoding) self.assertFalse(kwargs) -def test_main(): - run_unittest( - BufferSizesTests, - FileInputTests, - Test_fileinput_input, - Test_fileinput_close, - Test_fileinput_nextfile, - Test_fileinput_filename, - Test_fileinput_lineno, - Test_fileinput_filelineno, - Test_fileinput_fileno, - Test_fileinput_isfirstline, - Test_fileinput_isstdin, - Test_hook_compressed, - Test_hook_encoded, - ) if __name__ == "__main__": - test_main() + unittest.main() |