mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-46425: fix direct invocation of asyncio
tests (#30725)
This commit is contained in:
parent
38afeb1a33
commit
5a5340044c
6 changed files with 25 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue