mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 17:37:15 +00:00
Make expected error message less specific.
This commit is contained in:
parent
80b05ba663
commit
acdf332cda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user