]> granicus.if.org Git - python/commitdiff
Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 25 Jan 2014 22:53:28 +0000 (23:53 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 25 Jan 2014 22:53:28 +0000 (23:53 +0100)
Lib/test/test_telnetlib.py

index 4f61e44d2c69357caa5f343e43cb4660effc2380..ee1c35705bb0210e4c6f107eda0820c45637e83d 100644 (file)
@@ -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