[Python] Deal with an integer as the default value of a bool
parameter in the C++ prototype. Fixes github #327, reported by Greg Allen.
This commit is contained in:
parent
c2a13b9b7b
commit
c2972b8bf0
4 changed files with 18 additions and 0 deletions
|
|
@ -15,3 +15,8 @@ if d.draw2() != 0:
|
|||
if d.draw2(p) != 123:
|
||||
raise RuntimeError
|
||||
|
||||
if d.bool0() != False or type(d.bool0()) != type(False):
|
||||
raise RuntimeError
|
||||
|
||||
if d.bool1() != True or type(d.bool1()) != type(True):
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue