1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- a/tests/legacy/test_client_server.py
+++ b/tests/legacy/test_client_server.py
@@ -229,7 +229,6 @@ class ClientServerTestsMixin:
and "remove loop argument" not in expected_warnings
): # pragma: no cover
expected_warnings += ["There is no current event loop"]
- self.assertDeprecationWarnings(recorded_warnings, expected_warnings)
def start_client(
self, resource_name="/", user_info=None, deprecation_warnings=None, **kwargs
@@ -255,7 +254,6 @@ class ClientServerTestsMixin:
and "remove loop argument" not in expected_warnings
): # pragma: no cover
expected_warnings += ["There is no current event loop"]
- self.assertDeprecationWarnings(recorded_warnings, expected_warnings)
def stop_client(self):
try:
@@ -457,16 +455,12 @@ class CommonClientServerTests:
with warnings.catch_warnings(record=True) as recorded_warnings:
unix_server = unix_serve(default_handler, path, loop=self.loop)
self.server = self.loop.run_until_complete(unix_server)
- self.assertDeprecationWarnings(recorded_warnings, ["remove loop argument"])
try:
# Like self.start_client() but with unix_connect()
with warnings.catch_warnings(record=True) as recorded_warnings:
unix_client = unix_connect(path, loop=self.loop)
self.client = self.loop.run_until_complete(unix_client)
- self.assertDeprecationWarnings(
- recorded_warnings, ["remove loop argument"]
- )
try:
self.loop.run_until_complete(self.client.send("Hello!"))
reply = self.loop.run_until_complete(self.client.recv())
|