We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2111fd commit 94f0db5Copy full SHA for 94f0db5
tests/test_methods_and_attributes.py
@@ -433,18 +433,7 @@ def test_accepts_none(msg):
433
assert m.ok_none4(None) == -1
434
435
436
-def test_casts_none(msg):
437
- """#2778: implicit casting from None to object (not pointer)"""
438
- a = m.NoneCastTester()
439
- assert m.ok_obj_or_none(a) == -1
440
- a = m.NoneCastTester(4)
441
- assert m.ok_obj_or_none(a) == 4
442
- a = m.NoneCastTester(None)
443
444
- assert m.ok_obj_or_none(None) == -1
445
-
446
447
+def test_casts_none():
448
"""#2778: implicit casting from None to object (not pointer)"""
449
a = m.NoneCastTester()
450
assert m.ok_obj_or_none(a) == -1
0 commit comments