This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_undecodable_env failure
Type: behavior Stage:
Components: Tests Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vstinner Nosy List: pitrou, vstinner
Priority: normal Keywords:

Created on 2010-09-20 00:02 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg116895 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-20 00:02
Under the "x86 debian parallel 3.x" buildbot, there's the following failure:

======================================================================
FAIL: test_undecodable_env (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/test/test_subprocess.py", line 898, in test_undecodable_env
    self.assertEquals(stdout.decode('ascii'), ascii(value))
AssertionError: "'abc\\xff'" != "'abc\\udcff'"
- 'abc\xff'
?      ^
+ 'abc\udcff'
?      ^^^


======================================================================
FAIL: test_undecodable_env (test.test_subprocess.ProcessTestCasePOSIXPurePython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/test/test_subprocess.py", line 898, in test_undecodable_env
    self.assertEquals(stdout.decode('ascii'), ascii(value))
AssertionError: "'abc\\xff'" != "'abc\\udcff'"
- 'abc\xff'
?      ^
+ 'abc\udcff'
?      ^^^
msg116896 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-20 00:06
It can be reproduced quite easily with the right locale:

$ LANG=fr_FR.iso8859-1 ./python -m test.regrtest -v test_subprocess
msg116897 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-20 00:12
Fix attempted in r84912.
msg116900 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-20 00:28
Fixed!
History
Date User Action Args
2022-04-11 14:57:06adminsetgithub: 54111
2010-09-20 00:28:39pitrousetstatus: open -> closed
resolution: fixed
messages: + msg116900
2010-09-20 00:12:29pitrousetmessages: + msg116897
2010-09-20 00:06:46pitrousetmessages: + msg116896
2010-09-20 00:02:16pitroucreate