Skip to content
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

Closed
sadhak mannequin opened this issue Dec 30, 2009 · 5 comments
Closed

Installation - 2 tests failed: test_cmd_line test_xmlrpc #51850

sadhak mannequin opened this issue Dec 30, 2009 · 5 comments
Labels
build The build process and cross-build topic-installation

Comments

@sadhak
Copy link
Mannequin

sadhak mannequin commented Dec 30, 2009

BPO 7601
Nosy @amauryfa, @ezio-melotti

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:

assignee = None
closed_at = <Date 2009-12-31.07:52:54.264>
created_at = <Date 2009-12-30.16:41:23.312>
labels = ['build', 'expert-installation']
title = 'Installation - 2 tests failed: test_cmd_line test_xmlrpc'
updated_at = <Date 2010-01-06.16:31:47.138>
user = 'https://bugs.python.org/sadhak'

bugs.python.org fields:

activity = <Date 2010-01-06.16:31:47.138>
actor = 'ezio.melotti'
assignee = 'none'
closed = True
closed_date = <Date 2009-12-31.07:52:54.264>
closer = 'ezio.melotti'
components = ['Installation']
creation = <Date 2009-12-30.16:41:23.312>
creator = 'sadhak'
dependencies = []
files = []
hgrepos = []
issue_num = 7601
keywords = []
message_count = 5.0
messages = ['97040', '97042', '97078', '97309', '97310']
nosy_count = 3.0
nosy_names = ['amaury.forgeotdarc', 'ezio.melotti', 'sadhak']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue7601'
versions = ['Python 3.1']

@sadhak
Copy link
Mannequin Author

sadhak mannequin commented Dec 30, 2009

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
test_xmlrpc_net skipped -- Use of the `network' resource not enabled
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a
long time to run
test_zipimport
test_zipimport_support
test_zlib
310 tests OK.
2 tests failed:
test_cmd_line test_xmlrpc
23 tests skipped:
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_curses test_kqueue
test_nis test_normalization test_ossaudiodev test_pep277
test_smtpnet test_socketserver test_startfile test_timeout test_tk
test_ttk_guionly test_urllib2net test_urllibnet test_winreg
test_winsound test_xmlrpc_net test_zipfile64
Those skips are all expected on linux2.

@sadhak sadhak mannequin added topic-installation build The build process and cross-build labels Dec 30, 2009
@amauryfa
Copy link
Member

It's certainly because python is installed in a directory with non-ascii
characters.

@ezio-melotti
Copy link
Member

See bpo-7605 for test_cmd_line and bpo-7606 for test_xmlrpc.

@sadhak
Copy link
Mannequin Author

sadhak mannequin commented Jan 6, 2010

Thank you!

@ezio-melotti
Copy link
Member

Thanks to you for the report :)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build topic-installation
Projects
None yet
Development

No branches or pull requests

2 participants