summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_selectors.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_selectors.py b/tests/test_selectors.py
index 49b5b8d..a33f0fa 100644
--- a/tests/test_selectors.py
+++ b/tests/test_selectors.py
@@ -3,11 +3,14 @@ import os
import random
import signal
import sys
-from test import support
from time import sleep
import unittest
import unittest.mock
try:
+ from test import support
+except ImportError:
+ from asyncio import test_support as support
+try:
from time import monotonic as time
except ImportError:
from time import time as time