diff --git a/tests/test_koji_util.py b/tests/test_koji_util.py index 776a1f5..c0adb53 100644 --- a/tests/test_koji_util.py +++ b/tests/test_koji_util.py @@ -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)