mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make asyncio tests run on Windows.
This commit is contained in:
parent
27b7c7ebf1
commit
5ea7f93dcd
3 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
|||
"""Tests for streams.py."""
|
||||
|
||||
import gc
|
||||
import ssl
|
||||
import unittest
|
||||
import unittest.mock
|
||||
try:
|
||||
import ssl
|
||||
except ImportError:
|
||||
ssl = None
|
||||
|
||||
from asyncio import events
|
||||
from asyncio import streams
|
||||
|
|
|
@ -10,6 +10,9 @@ import sys
|
|||
import unittest
|
||||
import unittest.mock
|
||||
|
||||
if sys.platform == 'win32':
|
||||
raise unittest.SkipTest('UNIX only')
|
||||
|
||||
|
||||
from asyncio import events
|
||||
from asyncio import futures
|
||||
|
|
|
@ -11,7 +11,11 @@ if sys.platform != 'win32':
|
|||
import _winapi
|
||||
|
||||
from asyncio import windows_utils
|
||||
from asyncio import _overlapped
|
||||
|
||||
try:
|
||||
import _overlapped
|
||||
except ImportError:
|
||||
from asyncio import _overlapped
|
||||
|
||||
|
||||
class WinsocketpairTests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue