summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_events.py2
-rw-r--r--Lib/test/test_asyncio/test_server.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 0ae6eab1e1..e89db99df3 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1118,7 +1118,7 @@ class EventLoopTestsMixin:
f = self.loop.create_server(TestMyProto, sock=sock_ob)
server = self.loop.run_until_complete(f)
sock = server.sockets[0]
- self.assertIs(sock, sock_ob)
+ self.assertEqual(sock.fileno(), sock_ob.fileno())
host, port = sock.getsockname()
self.assertEqual(host, '0.0.0.0')
diff --git a/Lib/test/test_asyncio/test_server.py b/Lib/test/test_asyncio/test_server.py
index ab7f3debbc..4e758ad12e 100644
--- a/Lib/test/test_asyncio/test_server.py
+++ b/Lib/test/test_asyncio/test_server.py
@@ -58,7 +58,7 @@ class BaseStartServer(func_tests.FunctionalTestCaseMixin):
with self.tcp_client(lambda sock: client(sock, addr)):
self.loop.run_until_complete(main_task)
- self.assertEqual(srv.sockets, [])
+ self.assertEqual(srv.sockets, ())
self.assertIsNone(srv._sockets)
self.assertIsNone(srv._waiters)
@@ -111,7 +111,7 @@ class SelectorStartServerTests(BaseStartServer, unittest.TestCase):
with self.unix_client(lambda sock: client(sock, addr)):
self.loop.run_until_complete(main_task)
- self.assertEqual(srv.sockets, [])
+ self.assertEqual(srv.sockets, ())
self.assertIsNone(srv._sockets)
self.assertIsNone(srv._waiters)