Skip to content

Commit

Permalink
tests: pytest 2.7 / py27 compatibility
Browse files Browse the repository at this point in the history
pytest 2.7 does not use a namedtuple for capsys.readouterr().
  • Loading branch information
ktdreyer committed May 26, 2023
1 parent 2fd4c8b commit a9ba96c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions errata_tool/tests/cli/test_advisory_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def test_add_bugs_dry_run(capsys, monkeypatch, mock_get, mock_put):
main.main()

# We output 'DRY_RUN' and make no modification calls
captured = capsys.readouterr()
assert 'DRY RUN' in captured.out
assert '1578936' in captured.out
out, _ = capsys.readouterr()
assert 'DRY RUN' in out
assert '1578936' in out

assert not hasattr(mock_put, 'kwargs')

Expand Down

0 comments on commit a9ba96c

Please sign in to comment.