New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation - 2 tests failed: test_cmd_line test_xmlrpc #51850
Comments
I installed python 3.1.1 on Ubuntu 9.10. When I wrote "make test" I got: ...
test_cmd
test_cmd_line
test test_cmd_line failed -- Traceback (most recent call last):
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/test/
test_cmd_line.py", line 181, in test_large_PYTHONPATH
self.assertTrue(path1.encode('ascii') in stdout)
AssertionError: False is not True test_cmd_line_script AND: ...
test_xml_etree
test_xml_etree_c
test_xmlrpc
Traceback (most recent call last):
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/xmlrpc/server.py",
line 448, in do_POST
size_remaining = int(self.headers["content-length"])
ValueError: invalid literal for int() with base 10: 'I am broken'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/socketserver.py", line
281, in _handle_request_noblock
self.process_request(request, client_address)
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/socketserver.py", line
307, in process_request
self.finish_request(request, client_address)
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/socketserver.py", line
320, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/socketserver.py", line
614, in __init__
self.handle()
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/http/server.py", line
352, in handle
self.handle_one_request()
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/http/server.py", line
346, in handle_one_request
method()
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/xmlrpc/server.py",
line 472, in do_POST
self.send_header("X-traceback", traceback.format_exc())
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/http/server.py", line
410, in send_header
self.wfile.write(("%s: %s\r\n" % (keyword, value)).encode('ASCII',
'strict'))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in
position 78: ordinal not in range(128)
test test_xmlrpc failed -- Traceback (most recent call last):
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/test/test_xmlrpc.py",
line 555, in test_fail_with_info
p.pow(6,8)
xmlrpc.client.ProtocolError: <ProtocolError for 127.0.0.1:47884/RPC2:
500 Internal Server Error>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gaborik/Stiahnuté/Python-3.1.1/Lib/test/test_xmlrpc.py",
line 562, in test_fail_with_info
self.assertTrue(e.headers.get("X-traceback") is not None)
AssertionError: False is not True test_xmlrpc_net |
It's certainly because python is installed in a directory with non-ascii |
Thank you! |
Thanks to you for the report :) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: