Fix test error on Python 3.x.

This commit is contained in:
Jannis Leidel 2015-02-13 21:54:21 +01:00
parent 6ce3740365
commit f7629aa84c

View file

@ -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'))