mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update telnetlib from CPython 3.10
This commit is contained in:
1 parent
75eebc49ba
commit
bdab8f32b8
1 file changed
+2
-2
Vendored
+2
-2
@@ -16,7 +16,7 @@ def server(evt, serv):
|
||||
try:
|
||||
conn, addr = serv.accept()
|
||||
conn.close()
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
pass
|
||||
finally:
|
||||
serv.close()
|
||||
@@ -29,7 +29,7 @@ class GeneralTests(unittest.TestCase):
|
||||
self.sock.settimeout(60) # Safety net. Look issue 11812
|
||||
self.port = socket_helper.bind_port(self.sock)
|
||||
self.thread = threading.Thread(target=server, args=(self.evt,self.sock))
|
||||
self.thread.setDaemon(True)
|
||||
self.thread.daemon = True
|
||||
self.thread.start()
|
||||
self.evt.wait()
|
||||
|
||||
|
||||
Reference in new issue
Block a user