summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_runners.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-01-22 11:06:27 (GMT)
committerGitHub <noreply@github.com>2022-01-22 11:06:27 (GMT)
commit5a5340044ca98cbe6297668d91bccba04b102923 (patch)
tree03c491c4739e24dc09560596fce48deda09a0f46 /Lib/test/test_asyncio/test_runners.py
parent38afeb1a336f0451c0db86df567ef726f49f6438 (diff)
downloadcpython-5a5340044ca98cbe6297668d91bccba04b102923.zip
cpython-5a5340044ca98cbe6297668d91bccba04b102923.tar.gz
cpython-5a5340044ca98cbe6297668d91bccba04b102923.tar.bz2
bpo-46425: fix direct invocation of `asyncio` tests (#30725)
Diffstat (limited to 'Lib/test/test_asyncio/test_runners.py')
-rw-r--r--Lib/test/test_asyncio/test_runners.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py
index b9ae02d..5c06a1a 100644
--- a/Lib/test/test_asyncio/test_runners.py
+++ b/Lib/test/test_asyncio/test_runners.py
@@ -2,7 +2,7 @@ import asyncio
import unittest
from unittest import mock
-from . import utils as test_utils
+from test.test_asyncio import utils as test_utils
class TestPolicy(asyncio.AbstractEventLoopPolicy):
@@ -180,3 +180,7 @@ class RunTests(BaseTest):
self.assertIsNone(spinner.ag_frame)
self.assertFalse(spinner.ag_running)
+
+
+if __name__ == '__main__':
+ unittest.main()