Kaydet (Commit) 3c2f175e authored tarafından Victor Stinner's avatar Victor Stinner

Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector

üst 6029e086
...@@ -116,6 +116,10 @@ class MockSelector(selectors.BaseSelector): ...@@ -116,6 +116,10 @@ class MockSelector(selectors.BaseSelector):
def __init__(self): def __init__(self):
self.keys = {} self.keys = {}
@property
def resolution(self):
return 1e-3
def register(self, fileobj, events, data=None): def register(self, fileobj, events, data=None):
key = selectors.SelectorKey(fileobj, 0, events, data) key = selectors.SelectorKey(fileobj, 0, events, data)
self.keys[fileobj] = key self.keys[fileobj] = key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment