summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-25 22:53:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-25 22:53:28 (GMT)
commit3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8 (patch)
tree87c27afbe43e3efd0826b7361bb0c9b56406f887 /Lib/test
parent6029e086911be873b2ebacb933e3df08c23084e4 (diff)
downloadcpython-3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8.zip
cpython-3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8.tar.gz
cpython-3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8.tar.bz2
Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_telnetlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py
index 4f61e44..ee1c357 100644
--- a/Lib/test/test_telnetlib.py
+++ b/Lib/test/test_telnetlib.py
@@ -116,6 +116,10 @@ class MockSelector(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