mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-03 14:03:30 +08:00
parent
fbae8f313b
commit
cad79c1146
@ -431,7 +431,7 @@ def test_accepts_none(msg):
|
|||||||
assert "incompatible function arguments" in str(excinfo.value)
|
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)"""
|
"""#2778: implicit casting from None to object (not pointer)"""
|
||||||
a = m.NoneCastTester()
|
a = m.NoneCastTester()
|
||||||
assert m.ok_obj_or_none(a) == -1
|
assert m.ok_obj_or_none(a) == -1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user