From: l0rb Date: Thu, 7 Nov 2019 10:13:36 +0000 (+0100) Subject: update a deprecated assert in logging tests (GH-17079) X-Git-Tag: v3.9.0a1~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=991b02dc871e101e98edece37d8a570f6a39d79f;p=thirdparty%2FPython%2Fcpython.git update a deprecated assert in logging tests (GH-17079) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 6de8803081e5..c47ad4ac7520 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1613,7 +1613,7 @@ class ConfigFileTest(BaseTest): format=%(levelname)s ++ %(message)s """ self.apply_config(test_config) - self.assertEquals(logging.getLogger().handlers[0].name, 'hand1') + self.assertEqual(logging.getLogger().handlers[0].name, 'hand1') def test_defaults_do_no_interpolation(self): """bpo-33802 defaults should not get interpolated"""