[Python-checkins] update a deprecated assert in logging tests (GH-17079)
Vinay Sajip
webhook-mailer at python.org
Thu Nov 7 05:13:40 EST 2019
https://github.com/python/cpython/commit/991b02dc871e101e98edece37d8a570f6a39d79f
commit: 991b02dc871e101e98edece37d8a570f6a39d79f
branch: master
author: l0rb <lorbritzer at yahoo.de>
committer: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: 2019-11-07T10:13:36Z
summary:
update a deprecated assert in logging tests (GH-17079)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 6de8803081e51..c47ad4ac75206 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1613,7 +1613,7 @@ def test_config_set_handler_names(self):
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"""
More information about the Python-checkins
mailing list