[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:
Olly Betts 2015-05-07 16:24:56 +12:00
commit c2972b8bf0
4 changed files with 18 additions and 0 deletions

View file

@ -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