mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum
between the resolution of the BaseEventLoop.time() method and the resolution of the selector. The granuarility is used in the scheduler to round time and deadline.
This commit is contained in:
parent
635fca9704
commit
f67255ab94
6 changed files with 44 additions and 1 deletions
|
@ -39,7 +39,9 @@ def list_to_buffer(l=()):
|
|||
class BaseSelectorEventLoopTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.loop = TestBaseSelectorEventLoop(unittest.mock.Mock())
|
||||
selector = unittest.mock.Mock()
|
||||
selector.resolution = 1e-3
|
||||
self.loop = TestBaseSelectorEventLoop(selector)
|
||||
|
||||
def test_make_socket_transport(self):
|
||||
m = unittest.mock.Mock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue