mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -319,7 +319,7 @@ class test__mkstemp_inner(TC):
|
|||
f.write(b"blat\x1a")
|
||||
f.write(b"extra\n")
|
||||
os.lseek(f.fd, 0, os.SEEK_SET)
|
||||
self.assertEquals(os.read(f.fd, 20), b"blat")
|
||||
self.assertEqual(os.read(f.fd, 20), b"blat")
|
||||
|
||||
test_classes.append(test__mkstemp_inner)
|
||||
|
||||
|
|
@ -879,7 +879,7 @@ class test_TemporaryFile(TC):
|
|||
with tempfile.TemporaryFile(*args, **kwargs) as fileobj:
|
||||
fileobj.write(input)
|
||||
fileobj.seek(0)
|
||||
self.assertEquals(input, fileobj.read())
|
||||
self.assertEqual(input, fileobj.read())
|
||||
|
||||
roundtrip(b"1234", "w+b")
|
||||
roundtrip("abdc\n", "w+")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue