From f7629aa84cddf3bde35959abb180000e231d3dd9 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 13 Feb 2015 21:54:21 +0100 Subject: [PATCH] Fix test error on Python 3.x. --- tests/test_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 507b70c..981b222 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -105,7 +105,7 @@ class MainTests(TestCase): manage_args = ['python', os.path.join(ROOT_DIR, 'manage.py')] proc = subprocess.Popen(manage_args + ['test', '--help'], stdout=subprocess.PIPE) - self.assertIn('--configuration', proc.communicate()[0]) + self.assertIn('--configuration', proc.communicate()[0].decode('utf-8')) proc = subprocess.Popen(manage_args + ['runserver', '--help'], stdout=subprocess.PIPE) - self.assertIn('--configuration', proc.communicate()[0]) + self.assertIn('--configuration', proc.communicate()[0].decode('utf-8'))