Skip to content

Commit e3dc3de

Browse files
committed
3.7 fixes for Windows
1 parent 039639a commit e3dc3de

3 files changed

Lines changed: 8 additions & 19 deletions

File tree

tests/python/test_events.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,23 +2089,6 @@ class ProactorEventLoopTests(EventLoopTestsMixin, SubprocessTestsMixin, test_uti
20892089
def create_event_loop(self):
20902090
return asyncio.ProactorEventLoop()
20912091

2092-
if not sslproto._is_sslproto_available():
2093-
2094-
def test_create_ssl_connection(self):
2095-
raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
2096-
2097-
def test_create_server_ssl(self):
2098-
raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
2099-
2100-
def test_create_server_ssl_verify_failed(self):
2101-
raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
2102-
2103-
def test_create_server_ssl_match_failed(self):
2104-
raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
2105-
2106-
def test_create_server_ssl_verified(self):
2107-
raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
2108-
21092092
def test_legacy_create_ssl_connection(self):
21102093
raise unittest.SkipTest("IocpEventLoop incompatible with legacy SSL")
21112094

tests/python/test_windows_events.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
import _winapi
1010

1111
import asyncio
12-
from asyncio import _overlapped
12+
try:
13+
import _overlapped
14+
except ImportError: # py<3.7
15+
from asyncio import _overlapped
1316
from asyncio import test_utils
1417
from asyncio import windows_events
1518

tests/python/test_windows_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
import _winapi
1313

14-
from asyncio import _overlapped
14+
try:
15+
import _overlapped
16+
except ImportError: # py<3.7
17+
from asyncio import _overlapped
1518
from asyncio import windows_utils
1619
try:
1720
from test import support

0 commit comments

Comments
 (0)