# HG changeset patch # User Mike Miller # Date 1472262689 25200 # Node ID d0a7f66393fcaeaad789d83c41462ed6a4c353ed # Parent d362cdd1ddeb589b64dfe98059245c035900b966 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. diff -r d362cdd1ddeb -r d0a7f66393fc __py_struct_from_dict__.cc --- 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__ ()