Skip to content

Commit 23e03d5

Browse files
committed
fixup! roundtrip test via reference passed to aliased class method
1 parent 5cc4b44 commit 23e03d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_class_sh_with_alias.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import pytest
3+
import env # noqa: F401
34

45
from pybind11_tests import class_sh_with_alias as m
56

@@ -80,7 +81,11 @@ def pass_cref(self, obj):
8081
[
8182
(m.check_roundtrip_uq_cref, "pass_uq_cref"),
8283
(m.check_roundtrip_lref, "pass_lref"), # modification passed through 1:1
83-
(m.check_roundtrip_cref, ""), # modification lost (forbidden due to constness)
84+
pytest.param(
85+
m.check_roundtrip_cref,
86+
"", # modification lost (forbidden due to constness)
87+
marks=[pytest.mark.skipif("env.PYPY")],
88+
),
8489
],
8590
)
8691
def test_unique_ptr_consumer_roundtrip(f, expected):

0 commit comments

Comments
 (0)