mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
This commit is contained in:
parent
e382b5868a
commit
3e9a9ae09d
18 changed files with 24 additions and 108 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue