summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 770f218..25b21dc 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -6,9 +6,13 @@ import sys
import types
import unittest
import weakref
-from test import support
-from test.script_helper import assert_python_ok
from unittest import mock
+try:
+ from test import support # gc_collect
+ from test.script_helper import assert_python_ok
+except ImportError:
+ from asyncio import test_support as support
+ from asyncio.test_support import assert_python_ok
import asyncio
from asyncio import coroutines