Skip to content

Commit

Permalink
Remove deprecated assertions (RhBug:2027383)
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and lukash committed Dec 2, 2021
1 parent d641447 commit 2c01f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/hawkey/tests/tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_instance(self):

def test_repr(self):
regexp = r"<hawkey.Package object id \d+, flying-2-9\.noarch, @System>"
self.assertRegexpMatches(repr(self.pkg), regexp)
self.assertRegex(repr(self.pkg), regexp)

def test_str(self):
self.assertEqual(str(self.pkg),
Expand All @@ -76,7 +76,7 @@ def test_hashability(self):
# not pool Packages at this time). It however compares equal.
pkg3 = hawkey.Query(self.sack).filter(name__eq="fool").run()[0]
self.assertIsNot(pkg2, pkg3)
self.assertEquals(pkg2, pkg3)
self.assertEqual(pkg2, pkg3)
d[pkg3] += 1
self.assertEqual(d[pkg2], 2)
self.assertEqual(len(d), 2)
Expand Down

0 comments on commit 2c01f33

Please sign in to comment.