[Python-checkins] r46480 - sandbox/trunk/hotbuffer/test_hotbuf.py

martin.blais python-checkins at python.org
Sat May 27 18:34:51 CEST 2006


Author: martin.blais
Date: Sat May 27 18:34:51 2006
New Revision: 46480

Modified:
   sandbox/trunk/hotbuffer/test_hotbuf.py
Log:
Longer netstrings test

Modified: sandbox/trunk/hotbuffer/test_hotbuf.py
==============================================================================
--- sandbox/trunk/hotbuffer/test_hotbuf.py	(original)
+++ sandbox/trunk/hotbuffer/test_hotbuf.py	Sat May 27 18:34:51 2006
@@ -567,6 +567,8 @@
             packed_netstrings += netstring
 
 
+
+
     #---------------------------------------------------------------------------
     
     def _test_detect_boundary( self ):
@@ -579,7 +581,6 @@
         and prepare to reprocess a partially processed item in case this
         happens.
         """
-
         while 1:
             # Catch when we hit the boundary.
             try:
@@ -615,6 +616,12 @@
                 s = read(len(hot))
                 if not s:
                     break # Finished the input, exit.
+                hot.putstr(s)
+                hot.flip()
+
+                
+
+    #---------------------------------------------------------------------------
 
     def _test_multiple_sockets( self ):
         """


More information about the Python-checkins mailing list