From 41125968d9f6e81f4c7892532a1e0f5e61620ccb Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 11 Jun 2018 20:33:13 -0300 Subject: [PATCH] Check the exception matches the message for completeness --- testing/test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_runner.py b/testing/test_runner.py index 408e06549..f5430a90d 100644 --- a/testing/test_runner.py +++ b/testing/test_runner.py @@ -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