asyncio: Make tests pass on Windows.

This commit is contained in:
Guido van Rossum 2014-02-18 10:24:30 -08:00
parent 026019f89b
commit e3e786c963
1 changed files with 3 additions and 1 deletions

View File

@ -2,12 +2,14 @@
__all__ = ['StreamReader', 'StreamWriter', 'StreamReaderProtocol',
'open_connection', 'start_server',
'open_unix_connection', 'start_unix_server',
'IncompleteReadError',
]
import socket
if hasattr(socket, 'AF_UNIX'):
__all__.extend(['open_unix_connection', 'start_unix_server'])
from . import events
from . import futures
from . import protocols