Skip to content

Commit

Permalink
Update test_testing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
innerlee committed May 1, 2021
1 parent a0751d6 commit 9244292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_utils/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def test_check_python_script(capsys):
assert captured == 'hello zz!\n'
mmcv.utils.check_python_script('./tests/data/scripts/hello.py lizz')
captured = capsys.readouterr().out
assert captured == 'hello lizz!\n'
assert captured == 'hello agent!\n'
# Make sure that wrong cmd raises an error
with pytest.raises(SystemExit):
mmcv.utils.check_python_script('./tests/data/scripts/hello.py li zz')

0 comments on commit 9244292

Please sign in to comment.