diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 69f3ebc3f..5a43c3bd7 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -120,7 +120,7 @@ class TestAssert_reprcompare: expl = ' '.join(callequal('foo', 'bar')) assert 'raised in repr()' not in expl -@pytest.mark.skipif("config._assertstate.mode != 'on'") +@pytest.mark.skipif("config._assertstate.mode != 'rewrite'") def test_rewritten(): assert "@py_builtins" in globals()