mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #7857: Gave server thread more time to get ready, and re-enabled a skipped test.
This commit is contained in:
parent
42d5947ef5
commit
7f22443d94
1 changed files with 2 additions and 1 deletions
|
@ -1577,6 +1577,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
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.settimeout(2.0)
|
||||
|
@ -1615,7 +1616,7 @@ class ConfigDictTest(BaseTest):
|
|||
('ERROR', '4'),
|
||||
], stream=output)
|
||||
|
||||
@unittest.skip("See issue #7857")
|
||||
#@unittest.skip("See issue #7857")
|
||||
def test_listen_config_1_ok(self):
|
||||
with captured_stdout() as output:
|
||||
self.setup_via_listener(textwrap.dedent(ConfigFileTest.config1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue