run tests in their own __main__ module
do not use the current globals() as namespace, rather setup a clean namespace inside a newly created __main__ module. the missing "import sys" in test__socket_timeout.py fixed two commits ago, wouldn't go unnoticed with this change.
Showing
Please register or sign in to comment