Comments (2)
This is the cause of a test failure on Python 2
[ 79s] _______________________________ test_null_bytes ________________________________
[ 79s] test/server.py:276: in test_null_bytes
[ 79s] res = urlopen(server.get_url())
[ 79s] /usr/lib64/python2.7/urllib2.py:154: in urlopen
[ 79s] return opener.open(url, data, timeout)
[ 79s] /usr/lib64/python2.7/urllib2.py:435: in open
[ 79s] response = meth(req, response)
[ 79s] /usr/lib64/python2.7/urllib2.py:548: in http_response
[ 79s] 'http', request, response, code, msg, hdrs)
[ 79s] /usr/lib64/python2.7/urllib2.py:467: in error
[ 79s] result = self._call_chain(*args)
[ 79s] /usr/lib64/python2.7/urllib2.py:407: in _call_chain
[ 79s] result = func(*args)
[ 79s] /usr/lib64/python2.7/urllib2.py:654: in http_error_302
[ 79s] return self.parent.open(new, timeout=req.timeout)
[ 79s] /usr/lib64/python2.7/urllib2.py:429: in open
[ 79s] response = self._open(req, data)
[ 79s] /usr/lib64/python2.7/urllib2.py:447: in _open
[ 79s] '_open', req)
[ 79s] /usr/lib64/python2.7/urllib2.py:407: in _call_chain
[ 79s] result = func(*args)
[ 79s] /usr/lib64/python2.7/urllib2.py:1228: in http_open
[ 79s] return self.do_open(httplib.HTTPConnection, req)
[ 79s] /usr/lib64/python2.7/urllib2.py:1195: in do_open
[ 79s] h.request(req.get_method(), req.get_selector(), req.data, headers)
[ 79s] /usr/lib64/python2.7/httplib.py:1069: in request
[ 79s] self._send_request(method, url, body, headers)
[ 79s] /usr/lib64/python2.7/httplib.py:1103: in _send_request
[ 79s] self.putrequest(method, url, **skips)
[ 79s] /usr/lib64/python2.7/httplib.py:940: in putrequest
[ 79s] self._validate_path(url)
[ 79s] /usr/lib64/python2.7/httplib.py:1030: in _validate_path
[ 79s] raise InvalidURL(msg)
[ 79s] E InvalidURL: URL can't contain control characters. '/\x00/' (found at least '\x00')
from test_server.
Closing this. Python 2 support will be dropped in next release of test server.
from test_server.
Related Issues (9)
- Allow to specify null byte in content of header
- Ability to specify non-ascii headers
- PyPI tarball is missing some of test suite files HOT 1
- Importing ABC directly from collections module was removed in Python 3.9 HOT 6
- 0.0.31: pytest DeprecationWarning HOT 1
- 0.0.31: sphinx 4.0.3 warnings HOT 3
- multipart requirement conflicts with python-multipart used by starlette HOT 10
- Python 3.12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test_server.