Commit 0fd66b8f authored by Jesus Cea's avatar Jesus Cea

MERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812

parents 217f05b3 c241df81
...@@ -21,7 +21,6 @@ def server(evt, serv): ...@@ -21,7 +21,6 @@ def server(evt, serv):
conn.close() conn.close()
finally: finally:
serv.close() serv.close()
evt.set()
class GeneralTests(TestCase): class GeneralTests(TestCase):
...@@ -33,11 +32,8 @@ class GeneralTests(TestCase): ...@@ -33,11 +32,8 @@ class GeneralTests(TestCase):
self.thread = threading.Thread(target=server, args=(self.evt,self.sock)) self.thread = threading.Thread(target=server, args=(self.evt,self.sock))
self.thread.start() self.thread.start()
self.evt.wait() self.evt.wait()
self.evt.clear()
time.sleep(.1)
def tearDown(self): def tearDown(self):
self.evt.wait()
self.thread.join() self.thread.join()
del self.thread # Clear out any dangling Thread objects. del self.thread # Clear out any dangling Thread objects.
......
...@@ -1616,6 +1616,8 @@ Tests ...@@ -1616,6 +1616,8 @@ Tests
- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary - Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution. failure in name resolution.
- Solved a potential deadlock in test_telnetlib.py. Related to issue #11812.
- Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and - Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site. Web site.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment