Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 78c3a28

Browse files
author
Guido van Rossum
committed
Merge
1 parent 40fea19 commit 78c3a28

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

tests/test_streams.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
"""Tests for streams.py."""
22

33
import gc
4-
import ssl
54
import unittest
65
import unittest.mock
6+
try:
7+
import ssl
8+
except ImportError:
9+
ssl = None
710

811
from asyncio import events
912
from asyncio import streams

tests/test_unix_events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import unittest
1111
import unittest.mock
1212

13+
if sys.platform == 'win32':
14+
raise unittest.SkipTest('UNIX only')
15+
1316

1417
from asyncio import events
1518
from asyncio import futures

tests/test_windows_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
import _winapi
1212

1313
from asyncio import windows_utils
14-
from asyncio import _overlapped
14+
15+
try:
16+
import _overlapped
17+
except ImportError:
18+
from asyncio import _overlapped
1519

1620

1721
class WinsocketpairTests(unittest.TestCase):

0 commit comments

Comments
 (0)