import asyncio
from asyncio import base_events
from asyncio import constants
-from asyncio import test_utils
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
-try:
- from test.support.script_helper import assert_python_ok
-except ImportError:
- try:
- from test.script_helper import assert_python_ok
- except ImportError:
- from asyncio.test_support import assert_python_ok
+from test.test_asyncio import utils as test_utils
+from test import support
+from test.support.script_helper import assert_python_ok
MOCK_ANY = mock.ANY
import collections.abc
import concurrent.futures
import functools
-import gc
import io
import os
import platform
from asyncio import coroutines
from asyncio import proactor_events
from asyncio import selector_events
-from asyncio import sslproto
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
try:
from test import support
except ImportError:
from unittest import mock
import asyncio
-from asyncio import test_utils
from asyncio import futures
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
+from test.test_asyncio import utils as test_utils
+from test import support
def _fakefunc(f):
import re
import asyncio
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
STR_RGX_REPR = (
r'^<(?P<class>.*?) object at (?P<address>.*?)'
import types
import unittest
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
+from test import support
from unittest import mock
import asyncio
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
class BaseTest(test_utils.TestCase):
from asyncio.proactor_events import _ProactorSocketTransport
from asyncio.proactor_events import _ProactorWritePipeTransport
from asyncio.proactor_events import _ProactorDuplexPipeTransport
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
def close_transport(transport):
from unittest import mock
import asyncio
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
class _QueueTestBase(test_utils.TestCase):
ssl = None
import asyncio
-from asyncio import test_utils
from asyncio.selector_events import BaseSelectorEventLoop
from asyncio.selector_events import _SelectorTransport
from asyncio.selector_events import _SelectorSocketTransport
from asyncio.selector_events import _SelectorDatagramTransport
+from test.test_asyncio import utils as test_utils
MOCK_ANY = mock.ANY
import asyncio
from asyncio import log
from asyncio import sslproto
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
@unittest.skipIf(ssl is None, 'No ssl module')
ssl = None
import asyncio
-from asyncio import test_utils
+from test.test_asyncio import utils as test_utils
class StreamReaderTests(test_utils.TestCase):
import asyncio
from asyncio import base_subprocess
from asyncio import subprocess
-from asyncio import test_utils
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
+from test.test_asyncio import utils as test_utils
+from test import support
+
if sys.platform != 'win32':
from asyncio import unix_events
from asyncio import coroutines
from asyncio import futures
from asyncio import tasks
-from asyncio import test_utils
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
-try:
- from test.support.script_helper import assert_python_ok
-except ImportError:
- try:
- from test.script_helper import assert_python_ok
- except ImportError:
- from asyncio.test_support import assert_python_ok
+from test.test_asyncio import utils as test_utils
+from test import support
+from test.support.script_helper import assert_python_ok
@asyncio.coroutine
import asyncio
from asyncio import log
-from asyncio import test_utils
from asyncio import unix_events
+from test.test_asyncio import utils as test_utils
MOCK_ANY = mock.ANY
import _winapi
import asyncio
-from asyncio import test_utils
from asyncio import windows_events
+from test.test_asyncio import utils as test_utils
class UpperProto(asyncio.Protocol):
"""Tests for window_utils"""
-import socket
import sys
import unittest
import warnings
-from unittest import mock
if sys.platform != 'win32':
raise unittest.SkipTest('Windows only')
import _winapi
from asyncio import windows_utils
-try:
- from test import support
-except ImportError:
- from asyncio import test_support as support
+from test import support
class PipeTests(unittest.TestCase):
except ImportError: # pragma: no cover
ssl = None
-from . import base_events
-from . import events
-from . import futures
-from . import tasks
-from .log import logger
+from asyncio import base_events
+from asyncio import events
+from asyncio import futures
+from asyncio import tasks
+from asyncio.log import logger
from test import support
--- /dev/null
+Move asyncio.test_utils to test.test_asyncio.