Skip to content

Commit 4564ec4

Browse files
committed
Add debug printouts
1 parent f9c614b commit 4564ec4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bindings/pyroot/cppyy/cppyy/test/test_templates.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,16 +1133,23 @@ def test33_using_template_argument(self):
11331133

11341134
assert ns.testfun["testptr"](cppyy.bind_object(cppyy.nullptr, ns.Test))
11351135

1136+
print("step 1 done")
1137+
11361138
# TODO: raises TypeError; the problem is that the type is resolved
11371139
# from UsingPtr::Test*const& to UsingPtr::Test*& (ie. `const` is lost)
11381140
# assert ns.testfun["UsingPtr::testptr"](cppyy.nullptr)
11391141

11401142
assert ns.testptr.__name__ == "Test"
1143+
print("step 2 done")
11411144
assert ns.testptr.__cpp_name__ == "UsingPtr::Test*"
1145+
print("step 3 done")
11421146

11431147
assert cppyy.gbl.std.vector[ns.Test]
1148+
print("step 4 done")
11441149
assert ns.testptr
1150+
print("step 5 done")
11451151
assert cppyy.gbl.std.vector[ns.testptr]
1152+
print("step 6 done")
11461153

11471154
@mark.xfail(strict=True)
11481155
def test34_cstring_template_argument(self):
@@ -1410,4 +1417,4 @@ def test01_templated_callbacks(self):
14101417

14111418

14121419
if __name__ == "__main__":
1413-
exit(pytest.main(args=['-v', '-ra', __file__]))
1420+
exit(pytest.main(args=['-sv', '-ra', __file__]))

0 commit comments

Comments
 (0)