[Python-checkins] cpython: Move off of assertEquals() and over to assertEqual(). (original) (raw)
brett.cannon python-checkins at python.org
Tue Mar 15 21:03:41 CET 2011
- Previous message: [Python-checkins] cpython (merge 3.2 -> 3.2): merge 3.2 heads
- Next message: [Python-checkins] cpython: Add warnings support to test.support.args_from_interpreter_flags().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/3e783a029869 changeset: 68530:3e783a029869 parent: 68510:1c0cded97280 user: Brett Cannon <brett at python.org> date: Tue Mar 15 15:55:12 2011 -0400 summary: Move off of assertEquals() and over to assertEqual().
files: Lib/test/test_fileinput.py
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py --- a/Lib/test/test_fileinput.py +++ b/Lib/test/test_fileinput.py @@ -277,7 +277,7 @@
def test_empty_files_list_specified_to_constructor(self):
with FileInput(files=[]) as fi:
self.assertEquals(fi._files, ('-',))
def test__getitem__(self): """Tests invoking FileInput.getitem() with the currentself.assertEqual(fi._files, ('-',))
@@ -298,7 +298,7 @@ with FileInput(files=[t]) as fi: with self.assertRaises(RuntimeError) as cm: fi[1]
self.assertEquals(cm.exception.args, ("accessing lines out of order",))
def test__getitem__eof(self): """Tests invoking FileInput.getitem() with the line number but atself.assertEqual(cm.exception.args, ("accessing lines out of order",))
@@ -308,7 +308,7 @@ with FileInput(files=[t]) as fi: with self.assertRaises(IndexError) as cm: fi[0]
self.assertEquals(cm.exception.args, ("end of input reached",))
def test_nextfile_oserror_deleting_backup(self): """Tests invoking FileInput.nextfile() when the attempt to deleteself.assertEqual(cm.exception.args, ("end of input reached",))
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] cpython (merge 3.2 -> 3.2): merge 3.2 heads
- Next message: [Python-checkins] cpython: Add warnings support to test.support.args_from_interpreter_flags().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]