mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#17479: test_io now works with unittest test discovery. Patch by Zachary Ware.
This commit is contained in:
parent
325dc887ca
commit
daa42c778e
2 changed files with 7 additions and 3 deletions
|
@ -3226,7 +3226,7 @@ class PySignalsTest(SignalsTest):
|
||||||
test_reentrant_write_text = None
|
test_reentrant_write_text = None
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def load_tests(*args):
|
||||||
tests = (CIOTest, PyIOTest,
|
tests = (CIOTest, PyIOTest,
|
||||||
CBufferedReaderTest, PyBufferedReaderTest,
|
CBufferedReaderTest, PyBufferedReaderTest,
|
||||||
CBufferedWriterTest, PyBufferedWriterTest,
|
CBufferedWriterTest, PyBufferedWriterTest,
|
||||||
|
@ -3259,7 +3259,8 @@ def test_main():
|
||||||
for name, obj in py_io_ns.items():
|
for name, obj in py_io_ns.items():
|
||||||
setattr(test, name, obj)
|
setattr(test, name, obj)
|
||||||
|
|
||||||
support.run_unittest(*tests)
|
suite = unittest.TestSuite([unittest.makeSuite(test) for test in tests])
|
||||||
|
return suite
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
unittest.main()
|
||||||
|
|
|
@ -714,6 +714,9 @@ Tests
|
||||||
|
|
||||||
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
|
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
|
||||||
|
|
||||||
|
- Issue #17479: test_io now works with unittest test discovery.
|
||||||
|
Patch by Zachary Ware.
|
||||||
|
|
||||||
- Issue #17066: test_robotparser now works with unittest test discovery.
|
- Issue #17066: test_robotparser now works with unittest test discovery.
|
||||||
Patch by Zachary Ware.
|
Patch by Zachary Ware.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue