Skip to content

Commit 8efadfc

Browse files
committed
[cppyy] Use cppdef for variable in test
This fixes test22_cppexec which was marked as xfail if not IS_WINDOWS, which is the opposite of the given reason "Fails on Windows".
1 parent 5319787 commit 8efadfc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bindings/pyroot/cppyy/cppyy/test/test_fragile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,12 @@ def get_errmsg(exc, allspace=allspace):
544544
assert "invaliddigit" in err
545545
assert "1aap=42;" in err
546546

547-
@mark.xfail(strict=True, condition=not IS_WINDOWS, reason="Fails on Windows")
548547
def test22_cppexec(self):
549548
"""Interactive access to the Cling global scope"""
550549

551550
import cppyy
552551

553-
cppyy.cppexec("int interactive_b = 4")
552+
cppyy.cppdef("int interactive_b = 4;")
554553
assert cppyy.gbl.interactive_b == 4
555554

556555
with raises(SyntaxError):

0 commit comments

Comments
 (0)