Skip to content

Commit

Permalink
Replace deprecated assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rbasralian committed Jan 12, 2024
1 parent 525362d commit 2d252c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/python/jpy_exception_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_VerboseException(self):
# self.hexdump(expected_message)
# print [i for i in xrange(min(len(expected_message), len(actual_message))) if actual_message[i] != expected_message[i]]

self.assertEquals(actual_message, expected_message)
self.assertEqual(actual_message, expected_message)

with self.assertRaises(RuntimeError) as e:
fixture.throwNpeIfArgIsNullNested3(None)
Expand All @@ -107,7 +107,7 @@ def test_VerboseException(self):
# self.hexdump(expected_message)
# print [i for i in xrange(min(len(expected_message), len(actual_message))) if actual_message[i] != expected_message[i]]

self.assertEquals(actual_message, expected_message)
self.assertEqual(actual_message, expected_message)

jpy.VerboseExceptions.enabled = False

Expand Down

0 comments on commit 2d252c3

Please sign in to comment.