From a121c943ef29b30c2c9cf49a79cb359c9c3cb68f Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 18 Aug 2020 14:32:41 -0400 Subject: [PATCH] tests: Fix failure with newer pytest This is with latest packages on Fedora 33, I didn't investigate deeper Signed-off-by: Cole Robinson --- tests/test_urldetect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_urldetect.py b/tests/test_urldetect.py index 766bbe1a3..4993d230c 100644 --- a/tests/test_urldetect.py +++ b/tests/test_urldetect.py @@ -135,5 +135,5 @@ def test_misc(): with pytest.raises(ValueError) as e: _test("empty") - assert "installable distribution" in str(e) - assert "mistyped" in str(e) + assert "installable distribution" in str(e.value) + assert "mistyped" in str(e.value)