[issue7668] test_httpservers fails with non-ascii path

Florent Xicluna report at bugs.python.org
Wed Aug 4 00:49:19 CEST 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

Confirmed on 2.6 and 3.1 PPC Tiger and PPC Leopard buildbots.

Example (on PPC Leopard 2.6):
test_httpservers
'import site' failed; use -v for traceback
[16390 refs]
'import site' failed; use -v for traceback
[16390 refs]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/private/var/folders/xN/xNsmo12gFOi8bhXr5KKyyU+++TM/-Tmp-/tmpRBInYl/cgi-bin/file2.py", line 2, in <module>
    import cgi
  File "/Users/buildbot/buildarea/2.6.parc-leopard-1/build/Lib/cgi.py", line 37, in <module>
    from operator import attrgetter
ImportError: No module named operator
[16390 refs]
test test_httpservers failed -- Traceback (most recent call last):
  File "/Users/buildbot/buildarea/2.6.parc-leopard-1/build/Lib/test/test_httpservers.py", line 337, in test_post
    self.assertEquals(res.read(), '1, python, 123456\n')
AssertionError: '' != '1, python, 123456\n'


I would suggest to revert these backports from 2.6 and 3.1.
Obviously python is unable to find the "operator" C extension when it is run from a symbolic link.
And this symbolic link is only needed for corner cases (non-ASCII paths).

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7668>
_______________________________________


More information about the Python-bugs-list mailing list