From acdf332cda44c9b394405464c7533c9243fa08b2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 10 May 2022 18:42:39 -0700 Subject: [PATCH] Make expected error message less specific. --- tests/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 74cbf48be..21520a8c1 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -16,7 +16,7 @@ def test_std_exception(msg): def test_error_already_set(msg): with pytest.raises(SystemError) as excinfo: m.throw_already_set(False) - assert "without setting an error" in str(excinfo.value) + assert "without setting" in str(excinfo.value) with pytest.raises(ValueError) as excinfo: m.throw_already_set(True)