Coder Social home page Coder Social logo

Comments (2)

jayvdb avatar jayvdb commented on June 13, 2024

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.

lorien avatar lorien commented on June 13, 2024

Closing this. Python 2 support will be dropped in next release of test server.

from test_server.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.