Commit 5ea7f93d authored by Guido van Rossum's avatar Guido van Rossum

Make asyncio tests run on Windows.

parent 27b7c7eb
"""Tests for streams.py.""" """Tests for streams.py."""
import gc import gc
import ssl
import unittest import unittest
import unittest.mock import unittest.mock
try:
import ssl
except ImportError:
ssl = None
from asyncio import events from asyncio import events
from asyncio import streams from asyncio import streams
......
...@@ -10,6 +10,9 @@ import sys ...@@ -10,6 +10,9 @@ import sys
import unittest import unittest
import unittest.mock import unittest.mock
if sys.platform == 'win32':
raise unittest.SkipTest('UNIX only')
from asyncio import events from asyncio import events
from asyncio import futures from asyncio import futures
......
...@@ -11,7 +11,11 @@ if sys.platform != 'win32': ...@@ -11,7 +11,11 @@ if sys.platform != 'win32':
import _winapi import _winapi
from asyncio import windows_utils from asyncio import windows_utils
from asyncio import _overlapped
try:
import _overlapped
except ImportError:
from asyncio import _overlapped
class WinsocketpairTests(unittest.TestCase): class WinsocketpairTests(unittest.TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment