Skip to content

Commit

Permalink
Enable test_virtual_functions with a workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic authored and YannickJadoul committed Jan 1, 2021
1 parent 9e86f10 commit c183120
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_virtual_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ def dispatch(self):
== 'Tried to call pure virtual function "Base::dispatch"'
)

p = PyClass1()
return m.dispatch_issue_go(p)
return m.dispatch_issue_go(PyClass1())

b = PyClass2()
assert m.dispatch_issue_go(b) == "Yay.."
Expand Down

0 comments on commit c183120

Please sign in to comment.