Skip to content

Commit

Permalink
Pytest 5.0.0 fixes
Browse files Browse the repository at this point in the history
because of this change pytest-dev/pytest#5412

Signed-off-by: Martin Bašti <mbasti@redhat.com>
  • Loading branch information
MartinBasti committed Jul 3, 2019
1 parent 08636c9 commit c57aacf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_koji_util.py
Expand Up @@ -172,7 +172,7 @@ def test_get_api_version_error(self, mocked_koji):
.and_raise(Exception(msg))
)

with pytest.raises(KojiError) as ke:
with pytest.raises(KojiError) as exc_info:
mocked_koji.get_api_version()

assert msg in str(ke)
assert msg in str(exc_info.value)

0 comments on commit c57aacf

Please sign in to comment.