[CalendarServer-changes] [11482] CalendarServer/branches/users/glyph/hang-fix/twext/internet/test/ test_sendfdport.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 5 17:43:20 PDT 2013
Revision: 11482
http://trac.calendarserver.org//changeset/11482
Author: glyph at apple.com
Date: 2013-07-05 17:43:20 -0700 (Fri, 05 Jul 2013)
Log Message:
-----------
list() statuses rather than just appending them, so we can deal with an iterable.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/hang-fix/twext/internet/test/test_sendfdport.py
Modified: CalendarServer/branches/users/glyph/hang-fix/twext/internet/test/test_sendfdport.py
===================================================================
--- CalendarServer/branches/users/glyph/hang-fix/twext/internet/test/test_sendfdport.py 2013-07-06 00:43:19 UTC (rev 11481)
+++ CalendarServer/branches/users/glyph/hang-fix/twext/internet/test/test_sendfdport.py 2013-07-06 00:43:20 UTC (rev 11482)
@@ -69,18 +69,21 @@
def __init__(self, q):
self.q = q
+
def newConnectionStatus(self, previous):
if previous is None:
previous = 0
return previous + 1
+
def statusFromMessage(self, previous, message):
if previous is None:
- previous = 1
+ previous = 0
return previous - 1
+
def statusesChanged(self, statuses):
- self.q.append(statuses)
+ self.q.append(list(statuses))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130705/5060bd6b/attachment-0001.html>
More information about the calendarserver-changes
mailing list