From: Victor Stinner Date: Sat, 25 Jan 2014 22:53:28 +0000 (+0100) Subject: Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector X-Git-Tag: v3.4.0b3~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8;p=thirdparty%2FPython%2Fcpython.git Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector --- diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py index 4f61e44d2c69..ee1c35705bb0 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