Skip to content

Commit 2b70e7f

Browse files
authored
Merge pull request #10064 from hugovk/test-me-fix-logging.warn-deprecation
Replace deprecated logging.warn with logging.warning
2 parents d2a2066 + 6db715c commit 2b70e7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_debugging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_pdb_print_captured_logs(self, pytester, showcapture: str) -> None:
244244
"""
245245
def test_1():
246246
import logging
247-
logging.warn("get " + "rekt")
247+
logging.warning("get " + "rekt")
248248
assert False
249249
"""
250250
)
@@ -263,7 +263,7 @@ def test_pdb_print_captured_logs_nologging(self, pytester: Pytester) -> None:
263263
"""
264264
def test_1():
265265
import logging
266-
logging.warn("get " + "rekt")
266+
logging.warning("get " + "rekt")
267267
assert False
268268
"""
269269
)

0 commit comments

Comments
 (0)