From f8db06f44d58e81566a27c7c4b668d7f22f61e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ba=C5=A1ti?= Date: Wed, 3 Jul 2019 21:51:50 +0200 Subject: [PATCH] Pytest 5.0.0 fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because of this change https://github.com/pytest-dev/pytest/issues/5412 Signed-off-by: Martin Bašti --- tests/test_koji_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)