diff options
-rw-r--r-- | Lib/unittest/case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 18d977f..8632652 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -403,7 +403,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, callableObj) if callableObj is None: |