[Twisted-Python] Re: [Twisted-commits] CVS: Twisted/twisted/test test_protocols.py,1.6,1.7
25 Sep
2001
25 Sep
'01
11:09 a.m.
On Tue, 25 Sep 2001, Itamar Shtull-Trauring
+ assert r.brokenPeer, "connection wasn't closed on illegal netstring %s" % repr(s)
Itamar, and everybody: STOP DOING THAT!!!!!!!!!!!!!!!!!!!!!!!! Don't use "assert" in tests, since they don't operate under python -O. Someday, we'll want to test it working ok with -O. (say, if there is some less-then-trivial code undef "if __debug__".) -- The Official Moshe Zadka FAQ: http://moshez.geek The Official Moshe Zadka FAQ For Dummies: http://moshez.org Read the FAQ
8240
Age (days ago)
8241
Last active (days ago)
5 comments
4 participants
participants (4)
-
Chris Armstrong
-
Glyph Lefkowitz
-
Itamar Shtull-Trauring
-
Moshe Zadka