diff --git a/tests/test_methods_and_attributes.py b/tests/test_methods_and_attributes.py index 89b7225a9..750ec02f8 100644 --- a/tests/test_methods_and_attributes.py +++ b/tests/test_methods_and_attributes.py @@ -431,7 +431,7 @@ def test_accepts_none(msg): assert "incompatible function arguments" in str(excinfo.value) -def test_casts_none(msg): +def test_casts_none(): """#2778: implicit casting from None to object (not pointer)""" a = m.NoneCastTester() assert m.ok_obj_or_none(a) == -1