mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #16793. Replace deprecated unittest asserts with modern counterparts.
This commit is contained in:
parent
270767b2ce
commit
8876145fab
5 changed files with 12 additions and 12 deletions
|
@ -14,7 +14,7 @@ class MutexTest(unittest.TestCase):
|
|||
m.lock(called_by_mutex2, "eggs")
|
||||
|
||||
def called_by_mutex2(some_data):
|
||||
self.assertEquals(some_data, "eggs")
|
||||
self.assertEqual(some_data, "eggs")
|
||||
self.assertTrue(m.test(), "mutex not held")
|
||||
self.assertTrue(ready_for_2,
|
||||
"called_by_mutex2 called too soon")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue