mirror of
https://github.com/python/cpython.git
synced 2025-01-19 06:54:52 +08:00
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
This commit is contained in:
parent
32e4a58c06
commit
c241df814f
@ -21,7 +21,6 @@ def server(evt, serv):
|
||||
conn.close()
|
||||
finally:
|
||||
serv.close()
|
||||
evt.set()
|
||||
|
||||
class GeneralTests(TestCase):
|
||||
|
||||
@ -33,11 +32,8 @@ class GeneralTests(TestCase):
|
||||
self.thread = threading.Thread(target=server, args=(self.evt,self.sock))
|
||||
self.thread.start()
|
||||
self.evt.wait()
|
||||
self.evt.clear()
|
||||
time.sleep(.1)
|
||||
|
||||
def tearDown(self):
|
||||
self.evt.wait()
|
||||
self.thread.join()
|
||||
|
||||
def testBasic(self):
|
||||
|
@ -527,6 +527,8 @@ Tests
|
||||
- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
|
||||
failure in name resolution.
|
||||
|
||||
- Solved a potential deadlock in test_telnetlib.py. Related to issue #11812.
|
||||
|
||||
- Avoid failing in test_urllibnet.test_bad_address when some overzealous
|
||||
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
|
||||
is now skipped instead.
|
||||
|
Loading…
Reference in New Issue
Block a user