Check the exception matches the message for completeness

This commit is contained in:
Bruno Oliveira 2018-06-11 20:33:13 -03:00
parent 4fd66e8a42
commit 41125968d9
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class TestSetupState(object):
ss.addfinalizer(fin_module, item.listchain()[-2])
ss.addfinalizer(fin_func, item)
ss.prepare(item)
with pytest.raises(Exception):
with pytest.raises(Exception, match="oops1"):
ss.teardown_exact(item, None)
assert module_teardown