Skip to content

Commit

Permalink
A further fix in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 6, 2023
1 parent 9935eca commit 2a9d3e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/python/unittest/API/APITest.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,11 @@ def attributeRoundTrip(self, file_ending):
self.assertEqual(series.get_attribute("ubyte_c"), 50)
# TODO: returns [100] instead of 100 in json/toml
if file_ending != "json" and file_ending != "toml":
self.assertEqual(chr(series.get_attribute("char_c")), 'd')
try:
c = chr(series.get_attribute("char_c"))
self.assertEqual(c, 'd')
except TypeError:
self.assertEqual(series.get_attribute("char_c"), 'd')
self.assertEqual(series.get_attribute("int16_c"), 2)
self.assertEqual(series.get_attribute("int32_c"), 3)
self.assertEqual(series.get_attribute("int64_c"), 4)
Expand Down

0 comments on commit 2a9d3e1

Please sign in to comment.