mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
fix hanging test_xmlrpc
This commit is contained in:
parent
4f92ca4022
commit
1e637b7373
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ class SimpleServerTestCase(unittest.TestCase):
|
|||
def tearDown(self):
|
||||
# wait on the server thread to terminate
|
||||
self.evt.wait(4.0)
|
||||
if not self.evt.isSet():
|
||||
if not self.evt.is_set():
|
||||
self.evt.set()
|
||||
stop_serving()
|
||||
raise RuntimeError("timeout reached, test has failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue