Author serhiy.storchaka
Recipients Wei-Cheng.Pan, berker.peksag, r.david.murray, rhettinger, serhiy.storchaka
Date 2016-08-28.08:07:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472371650.6.0.560243190484.issue27413@psf.upfronthosting.co.za>
In-reply-to
Content
Test fails on non-utf8 locale.

$ LC_ALL=en_US ./python -m test.regrtest -v -m test_no_ensure_ascii_flag test_json
...
======================================================================
FAIL: test_no_ensure_ascii_flag (test.test_json.test_tool.TestTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_json/test_tool.py", line 115, in test_no_ensure_ascii_flag
    self.assertEqual(out.splitlines(), b'"\\u6e2c\\u8a66"\n'.splitlines())
AssertionError: Lists differ: [b'"\\u00e6\\u00b8\\u00ac\\u00e8\\u00a9\\u00a6"'] != [b'"\\u6e2c\\u8a66"']

First differing element 0:
b'"\\u00e6\\u00b8\\u00ac\\u00e8\\u00a9\\u00a6"'
b'"\\u6e2c\\u8a66"'

- [b'"\\u00e6\\u00b8\\u00ac\\u00e8\\u00a9\\u00a6"']
+ [b'"\\u6e2c\\u8a66"']

----------------------------------------------------------------------
History
Date User Action Args
2016-08-28 08:07:30serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, r.david.murray, berker.peksag, Wei-Cheng.Pan
2016-08-28 08:07:30serhiy.storchakasetmessageid: <1472371650.6.0.560243190484.issue27413@psf.upfronthosting.co.za>
2016-08-28 08:07:30serhiy.storchakalinkissue27413 messages
2016-08-28 08:07:30serhiy.storchakacreate