mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
#9424: Replace deprecated assert* methods in the Python test suite.
This commit is contained in:
parent
b8bc439b20
commit
b3aedd4862
170 changed files with 2388 additions and 2392 deletions
|
|
@ -68,8 +68,8 @@ class ThreadedTempFileTest(unittest.TestCase):
|
|||
|
||||
msg = "Errors: errors %d ok %d\n%s" % (len(errors), ok,
|
||||
'\n'.join(errors))
|
||||
self.assertEquals(errors, [], msg)
|
||||
self.assertEquals(ok, NUM_THREADS * FILES_PER_THREAD)
|
||||
self.assertEqual(errors, [], msg)
|
||||
self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
|
||||
|
||||
def test_main():
|
||||
run_unittest(ThreadedTempFileTest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue