Skip to content

Commit

Permalink
Fix test error on Python 3.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Feb 13, 2015
1 parent 6ce3740 commit f7629aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_configuration_argument_in_cli(self):
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'))

0 comments on commit f7629aa

Please sign in to comment.