summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2014-03-19 14:40:29 +0400
committerDmitry Shachnev <mitya57@gmail.com>2014-03-19 14:40:34 +0400
commit759d91cdcf654ffec58557be546040cdc922042d (patch)
treef74eb9c26f390f63b82d0748bcc78bac85b025bf
parent192694ed9f70447317bd54e427a17208bddf03be (diff)
downloadnose-759d91cdcf654ffec58557be546040cdc922042d.tar.gz
Make issue680 test succeed with LC_ALL=C
Previously, it was failing with: nose.proxy.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 189: ordinal not in range(128)
-rw-r--r--functional_tests/test_xunit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functional_tests/test_xunit.py b/functional_tests/test_xunit.py
index 70e1a52..9f4ac2f 100644
--- a/functional_tests/test_xunit.py
+++ b/functional_tests/test_xunit.py
@@ -86,8 +86,8 @@ class TestIssue680(PluginTester, unittest.TestCase):
def runTest(self):
print str(self.output)
- f = open(xml_results_filename,'r')
- result = f.read()
+ f = open(xml_results_filename,'rb')
+ result = f.read().decode('utf-8')
f.close()
print result
assert 'tests="1" errors="0" failures="0" skip="0"' in result