From cad79c1146c64ece40a9513dbffb4bb8ba93d561 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 30 Jun 2021 14:30:26 -0700 Subject: [PATCH] tests: remove very minor oversight in PR #3059. (#3066) --- tests/test_methods_and_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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