commit | 239f138aea2812dc948a46e376f3533efb70e10a | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Feb 06 22:08:15 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Feb 06 22:08:15 2010 +0000 |
tree | 82d940c261f73a30c11201e37871d0d07bb49c0b | |
parent | 26a1f72637cb6b8af7ccde5cfc683eefb0d9915a [diff] [blame] |
make waiting for the server to start robust
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 @@ 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)