Skip to content

Commit

Permalink
SWIG 3.0.10 is now the baseline so update test to check for int
Browse files Browse the repository at this point in the history
SWIG now returns int instead of long when the return value can
fit in an int.
  • Loading branch information
timj committed Aug 4, 2016
1 parent de64fbe commit 5886674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PropertySet_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ def testToDict(self):

self.assertIsInstance(d2["bool"], bool)
self.assertEqual(d2["bool"], True)
self.assertIsInstance(d2["short"], long)
self.assertIsInstance(d2["short"], int)
self.assertEqual(d2["short"], 42)
self.assertIsInstance(d2["int"], int)
self.assertEqual(d2["int"], 2008)
self.assertIsInstance(d2["int64_t"], long)
self.assertIsInstance(d2["int64_t"], int)
self.assertEqual(d2["int64_t"], long(0xfeeddeadbeef))
self.assertIsInstance(d2["ints"], tuple)
self.assertIsInstance(d2["ints"][0], int)
Expand Down

0 comments on commit 5886674

Please sign in to comment.