Skip to content

Commit

Permalink
Merge pull request #10064 from hugovk/test-me-fix-logging.warn-deprec…
Browse files Browse the repository at this point in the history
…ation

Replace deprecated logging.warn with logging.warning
  • Loading branch information
Zac-HD committed Jun 25, 2022
2 parents d2a2066 + 6db715c commit 2b70e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def test_pdb_print_captured_logs(self, pytester, showcapture: str) -> None:
"""
def test_1():
import logging
logging.warn("get " + "rekt")
logging.warning("get " + "rekt")
assert False
"""
)
Expand All @@ -263,7 +263,7 @@ def test_pdb_print_captured_logs_nologging(self, pytester: Pytester) -> None:
"""
def test_1():
import logging
logging.warn("get " + "rekt")
logging.warning("get " + "rekt")
assert False
"""
)
Expand Down

0 comments on commit 2b70e7f

Please sign in to comment.