mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -23,9 +23,9 @@ class TestLog(unittest.TestCase):
|
|||
log.debug("debug:\xe9")
|
||||
log.fatal("fatal:\xe9")
|
||||
stdout.seek(0)
|
||||
self.assertEquals(stdout.read().rstrip(), "debug:\\xe9")
|
||||
self.assertEqual(stdout.read().rstrip(), "debug:\\xe9")
|
||||
stderr.seek(0)
|
||||
self.assertEquals(stderr.read().rstrip(), "fatal:\\xe9")
|
||||
self.assertEqual(stderr.read().rstrip(), "fatal:\\xe9")
|
||||
finally:
|
||||
sys.stdout = old_stdout
|
||||
sys.stderr = old_stderr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue