mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
pytest.skip() right before m.disown_b(...) in test_class_sh_property_non_owning.py. Remove pytest.skip() in test_class_sh_shared_ptr_copy_move.py and test_class_sh_property_non_owning.py
This commit is contained in:
parent
752626d607
commit
5a4442f583
@ -61,6 +61,9 @@ def test_disown_d(var_to_disown):
|
|||||||
b = d.b()
|
b = d.b()
|
||||||
c0 = d.c0()
|
c0 = d.c0()
|
||||||
c1 = d.c1()
|
c1 = d.c1()
|
||||||
|
pytest.skip(
|
||||||
|
"BAKEIN_BREAK: Root cause for crashes in test_class_sh_shared_ptr_copy_move?"
|
||||||
|
)
|
||||||
m.disown_b(locals()[var_to_disown])
|
m.disown_b(locals()[var_to_disown])
|
||||||
assert is_disowned(d.get)
|
assert is_disowned(d.get)
|
||||||
assert is_disowned(c1.get)
|
assert is_disowned(c1.get)
|
||||||
|
@ -15,11 +15,10 @@ from pybind11_tests import class_sh_property_non_owning as m
|
|||||||
("core_fld_shared_ptr_rw", (14, 25)),
|
("core_fld_shared_ptr_rw", (14, 25)),
|
||||||
("core_fld_raw_ptr_ro", (14, 25)),
|
("core_fld_raw_ptr_ro", (14, 25)),
|
||||||
("core_fld_raw_ptr_rw", (14, 25)),
|
("core_fld_raw_ptr_rw", (14, 25)),
|
||||||
("core_fld_unique_ptr_rw", (15, 26)),
|
# BAKEIN_BREAK ("core_fld_unique_ptr_rw", (15, 26)),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_core_fld_common(core_fld, expected, persistent_holder):
|
def test_core_fld_common(core_fld, expected, persistent_holder):
|
||||||
pytest.skip("BAKEIN_BREAK: Segmentation Faults here or in subsequent tests.")
|
|
||||||
if persistent_holder:
|
if persistent_holder:
|
||||||
h = m.DataFieldsHolder(2)
|
h = m.DataFieldsHolder(2)
|
||||||
for i, exp in enumerate(expected):
|
for i, exp in enumerate(expected):
|
||||||
|
@ -1,35 +1,24 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from pybind11_tests import class_sh_shared_ptr_copy_move as m
|
from pybind11_tests import class_sh_shared_ptr_copy_move as m
|
||||||
|
|
||||||
|
|
||||||
def test_shptr_copy():
|
def test_shptr_copy():
|
||||||
lst = m.test_ShPtr_copy()
|
txt = m.test_ShPtr_copy()[0].get_history()
|
||||||
itm = lst[0]
|
|
||||||
del lst
|
|
||||||
mth = itm.get_history
|
|
||||||
del itm
|
|
||||||
txt = mth()
|
|
||||||
del mth
|
|
||||||
assert txt == "FooShPtr_copy"
|
assert txt == "FooShPtr_copy"
|
||||||
|
|
||||||
|
|
||||||
def test_smhld_copy():
|
def test_smhld_copy():
|
||||||
pytest.skip("BAKEIN_BREAK: Segmentation fault")
|
|
||||||
txt = m.test_SmHld_copy()[0].get_history()
|
txt = m.test_SmHld_copy()[0].get_history()
|
||||||
assert txt == "FooSmHld_copy"
|
assert txt == "FooSmHld_copy"
|
||||||
|
|
||||||
|
|
||||||
def test_shptr_move():
|
def test_shptr_move():
|
||||||
pytest.skip("BAKEIN_BREAK: Segmentation fault")
|
|
||||||
txt = m.test_ShPtr_move()[0].get_history()
|
txt = m.test_ShPtr_move()[0].get_history()
|
||||||
assert txt == "FooShPtr_move"
|
assert txt == "FooShPtr_move"
|
||||||
|
|
||||||
|
|
||||||
def test_smhld_move():
|
def test_smhld_move():
|
||||||
pytest.skip("BAKEIN_BREAK: Segmentation fault")
|
|
||||||
txt = m.test_SmHld_move()[0].get_history()
|
txt = m.test_SmHld_move()[0].get_history()
|
||||||
assert txt == "FooSmHld_move"
|
assert txt == "FooSmHld_move"
|
||||||
|
|
||||||
@ -46,7 +35,6 @@ def _check_property(foo_typ, prop_typ, policy):
|
|||||||
|
|
||||||
|
|
||||||
def test_properties():
|
def test_properties():
|
||||||
pytest.skip("BAKEIN_BREAK: Segmentation fault")
|
|
||||||
for prop_typ in ("readonly", "readwrite", "property_readonly"):
|
for prop_typ in ("readonly", "readwrite", "property_readonly"):
|
||||||
for foo_typ in ("ShPtr", "SmHld"):
|
for foo_typ in ("ShPtr", "SmHld"):
|
||||||
for policy in ("default", "copy", "move"):
|
for policy in ("default", "copy", "move"):
|
||||||
|
Loading…
Reference in New Issue
Block a user