aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-12-04 10:24:14 -0500
committerGravatar David Bremner <bremner@debian.org>2012-12-08 09:19:34 -0400
commit21326a1e6b23f0dc98d13c93cd5023e148fd1a5d (patch)
treec8b5edb2219bcb0352e4c1c947dff991a5aa7e72 /compat
parent2bd922ff06a4e989dc05a1a6739f649c85dae92e (diff)
test: Fix UTF-8 JSON tests in Python 3
test_expect_equal_json uses json.tool from the system Python. While Python 2 wasn't picky about the encoding of stdin, Python 3 decodes stdin strictly according to the environment. Since we set LC_ALL=C for the tests, Python 3's json.tool was assuming stdin would be in ASCII and aborting when it couldn't decode the UTF-8 characters from some of the JSON tests. This patch sets the PYTHONIOENCODING environment variable to utf-8 when invoking json.tool to override Python's default encoding choice.
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions