summaryrefslogtreecommitdiff
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-04-19 23:42:46 +0200
committerGitHub <noreply@github.com>2017-04-19 23:42:46 +0200
commit7b9619ae249ed637924d1c76687b411061753e5a (patch)
tree268ff0b5251e1ce94bec40340e03f921323b5479 /Python/getopt.c
parent1e62bf145b4865d03a29a5720a4eb84c321a9829 (diff)
downloadcpython-git-7b9619ae249ed637924d1c76687b411061753e5a.tar.gz
Fix/optimize test_asyncore.test_quick_connect() (#1188)
Don't use addCleanup() in test_quick_connect() because it keeps the Thread object alive and so @reap_threads fails on its timeout of 1 second. "./python -m test -v test_asyncore -m test_quick_connect" now takes 185 ms, instead of 11 seconds. Other minor changes: * Use "with sock:" to close the socket instead of try/finally: sock.close() * Use self.skipTest() in test_quick_connect() to remove one indentation level and notice user that the test is specific to AF_INET and AF_INET6
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions