[issue14408] Support ./python -m unittest in test_socket

STINNER Victor report at bugs.python.org
Mon Sep 20 03:54:09 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

Lib/test/test_socket.py has no more test_main() function, but uses:

if __name__ == "__main__":
    unittest.main()

Moreover, "./python -m unittest Lib/test/test_socket.py -v"  works as expected. I close the issue.

----------
dependencies:  -Fix test discovery for test_concurrent_futures.py
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Some tests in test_socket are not run

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14408>
_______________________________________


More information about the Python-bugs-list mailing list