summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2022-03-27 18:22:05 (GMT)
committerGitHub <noreply@github.com>2022-03-27 18:22:05 (GMT)
commitc12ba6b2ff7908c8970b978f149d51ecd3fb195c (patch)
tree91be542e3bb7de7cb7d88418c369ab929bea0c64
parent5ca6d7469be53960843df39bb900e9c3359f127f (diff)
downloadcpython-c12ba6b2ff7908c8970b978f149d51ecd3fb195c.zip
cpython-c12ba6b2ff7908c8970b978f149d51ecd3fb195c.tar.gz
cpython-c12ba6b2ff7908c8970b978f149d51ecd3fb195c.tar.bz2
bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139)
-rw-r--r--Lib/logging/__init__.py2
-rw-r--r--Lib/test/test_logging.py3
2 files changed, 1 insertions, 4 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index e8054fb..d6315b0 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1568,7 +1568,7 @@ class Logger(Filterer):
while stacklevel > 0:
next_f = f.f_back
if next_f is None:
- ##TODO: We've got options here
+ ## We've got options here.
## If we want to use the last (deepest) frame:
break
## If we want to mimic the warnings module:
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 00e3541..f6f5977 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -5075,9 +5075,6 @@ class LoggerTest(BaseTest, AssertErrorMessage):
self.assertEqual(records[-1].funcName, 'outer')
self.assertGreater(records[-1].lineno, lineno)
lineno = records[-1].lineno
- trigger = self.logger.warn
- outer()
- self.assertEqual(records[-1].funcName, 'outer')
root_logger = logging.getLogger()
root_logger.addHandler(self.recording)
trigger = logging.warning