From 33b1635a90564a26054930caa0dd8f5be31e101e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 16 Apr 2015 13:44:07 -0400 Subject: [PATCH] Fixed fixtures tests failure on Python 2 with non-ASCII path. --- tests/fixtures/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 8eec3145b8..8f2e560781 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -345,7 +345,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): def test_loaddata_verbosity_three(self): output = six.StringIO() management.call_command('loaddata', 'fixture1.json', verbosity=3, stdout=output, stderr=output) - command_output = output.getvalue() + command_output = force_text(output.getvalue()) self.assertIn( "\rProcessed 1 object(s).\rProcessed 2 object(s)." "\rProcessed 3 object(s).\rProcessed 4 object(s).\n",