mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
This commit is contained in:
parent
b65b4937e2
commit
19f2aeba67
164 changed files with 2281 additions and 2279 deletions
|
@ -314,7 +314,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)
|
||||
|
||||
|
@ -872,7 +872,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