Check the exception matches the message for completeness
This commit is contained in:
parent
4fd66e8a42
commit
41125968d9
|
@ -95,7 +95,7 @@ class TestSetupState(object):
|
||||||
ss.addfinalizer(fin_module, item.listchain()[-2])
|
ss.addfinalizer(fin_module, item.listchain()[-2])
|
||||||
ss.addfinalizer(fin_func, item)
|
ss.addfinalizer(fin_func, item)
|
||||||
ss.prepare(item)
|
ss.prepare(item)
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception, match="oops1"):
|
||||||
ss.teardown_exact(item, None)
|
ss.teardown_exact(item, None)
|
||||||
assert module_teardown
|
assert module_teardown
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue