Skip to content

Commit c183120

Browse files
bstaleticYannickJadoul
authored andcommitted
Enable test_virtual_functions with a workaround
1 parent 9e86f10 commit c183120

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_virtual_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ def dispatch(self):
251251
== 'Tried to call pure virtual function "Base::dispatch"'
252252
)
253253

254-
p = PyClass1()
255-
return m.dispatch_issue_go(p)
254+
return m.dispatch_issue_go(PyClass1())
256255

257256
b = PyClass2()
258257
assert m.dispatch_issue_go(b) == "Yay.."

0 commit comments

Comments
 (0)