diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index b058b49366a..4568e1044c3 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -390,7 +390,7 @@ class TestCase(object): with self.assertRaises(SomeException) as cm: do_something() the_exception = cm.exc_value - self.assertEquals(the_exception.error_code, 3) + self.assertEqual(the_exception.error_code, 3) """ context = _AssertRaisesContext(excClass, self) if callableObj is None: