changeset 375:d0a7f66393fc

Fix __py_class_name__ tests to work with Python 2 * __py_struct_from_dict__.cc: Fix __py_class_name__ tests to work with Python 2.
author Mike Miller <mtmiller@octave.org>
date Fri, 26 Aug 2016 18:51:29 -0700
parents d362cdd1ddeb
children d1e00e614b4c
files __py_struct_from_dict__.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/__py_struct_from_dict__.cc	Fri Aug 26 18:51:42 2016 -0700
+++ b/__py_struct_from_dict__.cc	Fri Aug 26 18:51:29 2016 -0700
@@ -59,9 +59,10 @@
 
 /*
 %!assert (__py_class_name__ (pyeval ("None")), "NoneType")
-%!assert (__py_class_name__ (pyeval ("0")), "int")
 %!assert (__py_class_name__ (pyeval ("'Octave'")), "str")
+%!assert (__py_class_name__ (pyeval ("{}")), "dict")
 %!assert (__py_class_name__ (pyeval ("[]")), "list")
+%!assert (__py_class_name__ (pyeval ("()")), "tuple")
 %!assert (__py_class_name__ (pyeval ("__import__('array').array('d')")), "array.array")
 
 %!error __py_class_name__ ()