Skip to content

Commit

Permalink
Merge pull request #203 from neutrinoceros/adapt_numpy_test
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Jul 1, 2023
2 parents a4886fa + 9690b37 commit 93e94aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ def test_source(fake_module, capsys):

def test_source_error(capsys):
pytest.importorskip("numpy")
ret1 = main(["numpy.VisibleDeprecationWarning"])
ret1 = main(["numpy.ndarray"])
assert ret1 == 0
out, err = capsys.readouterr()
assert out != ""
assert err == ""

ret2 = main(["numpy.VisibleDeprecationWarning", "-s"])
ret2 = main(["numpy.ndarray", "-s"])
out, err = capsys.readouterr()
# rich may output an unspecified amount of newlines
# that don't actually affect the result visually
Expand Down

0 comments on commit 93e94aa

Please sign in to comment.