Skip to content

Commit

Permalink
tests: Fix call to deprecated method
Browse files Browse the repository at this point in the history
The method `assertEquals()` has been deprecated since Python 3.2 and was
removed in Python 3.11.
  • Loading branch information
mgrabovsky authored and michalfabik committed Nov 5, 2021
1 parent 2cab01c commit f8e684b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def setUp(self):

def test_str(self):
out = str(self.frame)
self.assertEquals(out, '[0x0000003739a35935] raise cc10c72da62c93033e227ffbe2670f2c4fbbde1a+0x35935 '
'[/usr/lib64/libc-2.15.so] '
'fingerprint: f33186a4c862fb0751bca60701f553b829210477 (hashed)')
self.assertEqual(out, '[0x0000003739a35935] raise cc10c72da62c93033e227ffbe2670f2c4fbbde1a+0x35935 '
'[/usr/lib64/libc-2.15.so] '
'fingerprint: f33186a4c862fb0751bca60701f553b829210477 (hashed)')

def test_dup(self):
dup = self.frame.dup()
Expand Down

0 comments on commit f8e684b

Please sign in to comment.