summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-02-06 22:08:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-02-06 22:08:15 (GMT)
commit239f138aea2812dc948a46e376f3533efb70e10a (patch)
tree82d940c261f73a30c11201e37871d0d07bb49c0b /Lib/test
parent26a1f72637cb6b8af7ccde5cfc683eefb0d9915a (diff)
downloadcpython-239f138aea2812dc948a46e376f3533efb70e10a.zip
cpython-239f138aea2812dc948a46e376f3533efb70e10a.tar.gz
cpython-239f138aea2812dc948a46e376f3533efb70e10a.tar.bz2
make waiting for the server to start robust
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 2a5283c..b9825cd 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1574,7 +1574,7 @@ class ConfigDictTest(BaseTest):
port = find_unused_port()
t = logging.config.listen(port)
t.start()
- time.sleep(0.5) # give server thread some time to get ready
+ t.ready.wait()
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(2.0)