[Python-checkins] r68899 - in python/branches/release26-maint: Lib/test/test_kqueue.py

mark.dickinson python-checkins at python.org
Sat Jan 24 17:20:59 CET 2009


Author: mark.dickinson
Date: Sat Jan 24 17:20:50 2009
New Revision: 68899
Log:
Merged revisions 68897 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk
........
 r68897 | mark.dickinson | 2009年01月24日 16:17:27 +0000 (2009年1月24日) | 2 lines
 
 Issue #5025: Fix occasional test_kqueue failure on OS X.
........
Modified:
 python/branches/release26-maint/ (props changed)
 python/branches/release26-maint/Lib/test/test_kqueue.py
Modified: python/branches/release26-maint/Lib/test/test_kqueue.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_kqueue.py	(original)
+++ python/branches/release26-maint/Lib/test/test_kqueue.py	Sat Jan 24 17:20:50 2009
@@ -120,12 +120,15 @@
 client.send("Hello!")
 server.send("world!!!")
 
- events = kq.control(None, 4, 1)
 # We may need to call it several times
- for i in range(5):
+ for i in range(10):
+ events = kq.control(None, 4, 1)
 if len(events) == 4:
 break
- events = kq.control(None, 4, 1)
+ time.sleep(1.0)
+ else:
+ self.fail('timeout waiting for event notifications')
+
 events = [(e.ident, e.filter, e.flags) for e in events]
 events.sort()
 


More information about the Python-checkins mailing list

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