mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix asyncio tests: define resolution
This commit is contained in:
parent
6b0fa70547
commit
75a5ec88ff
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ class TestSelector(selectors.BaseSelector):
|
|||
def __init__(self):
|
||||
self.keys = {}
|
||||
|
||||
@property
|
||||
def resolution(self):
|
||||
return 1e-3
|
||||
|
||||
def register(self, fileobj, events, data=None):
|
||||
key = selectors.SelectorKey(fileobj, 0, events, data)
|
||||
self.keys[fileobj] = key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue