diff options
-rw-r--r-- | cherrypy/test/test_conn.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cherrypy/test/test_conn.py b/cherrypy/test/test_conn.py index 00adcca5..502a3ab3 100644 --- a/cherrypy/test/test_conn.py +++ b/cherrypy/test/test_conn.py @@ -1,5 +1,6 @@ """Tests for TCP connection handling, including proper and timely close.""" +import httplib import socket import sys import time @@ -801,6 +802,10 @@ class LimitedRequestQueueTests(helper.CPWebCase): 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: |