66e2d50000
This is allowed by the pep but the code was written such that if it received an empty string it would not get the rest of the iterator. This change fixes it so only None will cause the stop. With this change an unrelated test wsgi app which was returning an empty string needed to be fixed to return a bytestring. Fixes #46 |
||
---|---|---|
.. | ||
README | ||
__init__.py | ||
install.py | ||
test_http_client.py | ||
test_httplib2.py | ||
test_interceptor.py | ||
test_module_interceptor.py | ||
test_requests.py | ||
test_response_headers.py | ||
test_urllib.py | ||
test_urllib3.py | ||
test_wsgi_compliance.py | ||
wsgi_app.py |
README
If you wish to run the tests without those tests which speak to the internet (there are a few that validate that the intercept does not intercept), set the WSGI_INTERCEPT_SKIP_NETWORK environment variable to "True". Any other value or no value will mean that the network tests will run.