diff options
| author | Chris McDonough <chrism@plope.com> | 2011-12-30 02:06:46 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-12-30 02:06:46 -0500 |
| commit | b33f1aeb9f24010a4e0ed68585dd931efb900531 (patch) | |
| tree | 5f1ec319d3ede92a672ea664301822209fa0b948 /waitress/tests/test_functional.py | |
| parent | c68c03332f0f2639ceb118c2d0e5e9f1a6c6a7a6 (diff) | |
| download | waitress-pipelinefix.tar.gz | |
coveragepipelinefix
Diffstat (limited to 'waitress/tests/test_functional.py')
| -rw-r--r-- | waitress/tests/test_functional.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/waitress/tests/test_functional.py b/waitress/tests/test_functional.py index 87c316e..9016375 100644 --- a/waitress/tests/test_functional.py +++ b/waitress/tests/test_functional.py @@ -791,7 +791,8 @@ def parse_headers(fp): class ConnectionClosed(Exception): pass -def read_http(fp): +# stolen from gevent +def read_http(fp): # pragma: no cover try: response_line = fp.readline() except socket.error as exc: @@ -827,8 +828,9 @@ def read_http(fp): body = fp.read() return response_line, headers, body - -def get_errno(exc): + +# stolen from gevent +def get_errno(exc): # pragma: no cover """ Get the error code out of socket.error objects. socket.error in <2.5 does not have errno attribute socket.error in 3.x does not allow indexing access |
