mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
|
@ -8,7 +8,7 @@ class LockTests(unittest.TestCase):
|
|||
"""Very basic test of import lock functions."""
|
||||
|
||||
def verify_lock_state(self, expected):
|
||||
self.failUnlessEqual(imp.lock_held(), expected,
|
||||
self.assertEqual(imp.lock_held(), expected,
|
||||
"expected imp.lock_held() to be %r" % expected)
|
||||
def testLock(self):
|
||||
LOOPS = 50
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue