diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-26 21:16:42 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-26 21:16:42 +0100 |
commit | 6a0b0f8e6fbea4c020f08ff29f73ae437f5700b8 (patch) | |
tree | 58d78246c9de07af7e38480abd0d3c04968713b8 /Lib/test/test_asyncio/test_windows_utils.py | |
parent | 5ac6311ccdb07a40027c55bd0992729075dd6c26 (diff) | |
download | cpython-6a0b0f8e6fbea4c020f08ff29f73ae437f5700b8.tar.gz |
asyncio: sync with Tulip
* Fix pyflakes warnings: remove unused imports and variables
* asyncio.test_support now uses test.support and test.script_helper if available
Diffstat (limited to 'Lib/test/test_asyncio/test_windows_utils.py')
-rw-r--r-- | Lib/test/test_asyncio/test_windows_utils.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_asyncio/test_windows_utils.py b/Lib/test/test_asyncio/test_windows_utils.py index b957949184..af5c453b08 100644 --- a/Lib/test/test_asyncio/test_windows_utils.py +++ b/Lib/test/test_asyncio/test_windows_utils.py @@ -5,18 +5,17 @@ import sys import unittest from unittest import mock -try: - from test import support # gc_collect, IPV6_ENABLED -except ImportError: - from asyncio import test_support as support - if sys.platform != 'win32': raise unittest.SkipTest('Windows only') import _winapi -from asyncio import windows_utils from asyncio import _overlapped +from asyncio import windows_utils +try: + from test import support +except ImportError: + from asyncio import test_support as support class WinsocketpairTests(unittest.TestCase): |