Fix Python typedef bool default arguments that are not booleans.

Includes code optimisation in PYTHON::convertValue().

Closes #327
This commit is contained in:
William S Fulton 2015-05-27 20:51:20 +01:00
commit 986a13f1a0
4 changed files with 29 additions and 19 deletions

View file

@ -20,3 +20,9 @@ if d.bool0() != False or type(d.bool0()) != type(False):
if d.bool1() != True or type(d.bool1()) != type(True):
raise RuntimeError
if d.mybool0() != False or type(d.mybool0()) != type(False):
raise RuntimeError
if d.mybool1() != True or type(d.mybool1()) != type(True):
raise RuntimeError