diff --git a/nibabel/tests/test_tripwire.py b/nibabel/tests/test_tripwire.py index d7daefe0b..4bf91923f 100644 --- a/nibabel/tests/test_tripwire.py +++ b/nibabel/tests/test_tripwire.py @@ -16,5 +16,5 @@ def test_tripwire(): with pytest.raises(TripWireError): silly_module_name.do_silly_thing # Check AttributeError can be checked too - with pytest.raises(AttributeError) as err: + with pytest.raises(AttributeError): silly_module_name.__wrapped__