Skip to content

Commit 4386ebf

Browse files
committed
Merge pull request smurfix#125 from nfvs/fix_python3_tests
Fix python3 unit tests.
2 parents 631498a + b7022a0 commit 4386ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,9 @@ def test_run_catch_all(self, capsys):
566566

567567
code = run('manage.py catch pos1 --foo pos2 --bar', manager.run)
568568
out, err = capsys.readouterr()
569+
out_list = [o.strip('u\'') for o in out.strip('[]\n').split(', ')]
569570
assert code == 0
570-
assert "[u'pos1', u'pos2', u'--bar']" in out
571+
assert ['pos1', 'pos2', '--bar'] == out_list
571572

572573
def test_run_bad_options(self, capsys):
573574
manager = Manager(self.app)

0 commit comments

Comments
 (0)