[Python-checkins] cpython: Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector

victor.stinner python-checkins at python.org
Sat Jan 25 23:53:42 CET 2014


http://hg.python.org/cpython/rev/f453443c96e4
changeset: 88711:f453443c96e4
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Jan 25 23:53:28 2014 +0100
summary:
 Issue #20311: Fix test_telnetlib, set the resolution of the MockSelector
files:
 Lib/test/test_telnetlib.py | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py
--- a/Lib/test/test_telnetlib.py
+++ b/Lib/test/test_telnetlib.py
@@ -116,6 +116,10 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /