Commits

Gustavo Picon committed a953c88

Fixed test_queue_full in OS X.

  • Participants
  • Parent commits 66c8e2b
  • Branches cp4

Comments (0)

Files changed (1)

File cherrypy/test/test_conn.py

 """Tests for TCP connection handling, including proper and timely close."""
 
+import httplib
 import socket
 import sys
 import time
                 else:
                     raise AssertionError("Overflow conn did not get RST. "
                                          "Got %s instead" % repr(exc.args))
+            except httplib.BadStatusLine:
+                # This is a special case in OS X. Linux and Windows will
+                # RST correctly.
+                assert sys.platform == 'darwin'
             else:
                 raise AssertionError("Overflow conn did not get RST ")
         finally: