We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ecfe5b commit b89ba76Copy full SHA for b89ba76
tests/test_tcp.py
@@ -1,5 +1,6 @@
1
import asyncio
2
import socket
3
+import unittest
4
import uvloop
5
import sys
6
@@ -188,11 +189,13 @@ async def runner():
188
189
190
def test_create_server_6(self):
191
if not hasattr(socket, 'SO_REUSEPORT'):
- return unittest.skip('The system does not support SO_REUSEPORT')
192
+ raise unittest.SkipTest(
193
+ 'The system does not support SO_REUSEPORT')
194
195
if sys.version_info[:3] < (3, 5, 1):
- return unittest.skip('asyncio in CPython 3.5.0 does not have the '
- 'reuse_port argument')
196
197
+ 'asyncio in CPython 3.5.0 does not have the '
198
+ 'reuse_port argument')
199
200
port = tb.find_free_port()
201
0 commit comments