Make expected error message less specific.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-05-10 18:42:39 -07:00
parent 80b05ba663
commit acdf332cda

View File

@ -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)