• Victor Stinner's avatar
    Fix/optimize test_asyncore.test_quick_connect() (#1188) · 7b9619ae
    Victor Stinner yazdı
    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
    7b9619ae
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.codecov.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
.mention-bot Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...