Skip to content

Commit

Permalink
Apply ruff/flake8-logging rule LOG009 (pydicom#2100)
Browse files Browse the repository at this point in the history
LOG009 Use of undocumented `logging.WARN` constant
  • Loading branch information
DimitriPapadopoulos committed Jul 9, 2024
1 parent d86ba70 commit a09dd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_size_in_bytes(self):
def test_warn_and_log(self, caplog):
"""Test warn_and_log"""

with caplog.at_level(logging.WARN, logger="pydicom"):
with caplog.at_level(logging.WARNING, logger="pydicom"):
with pytest.warns(UserWarning, match="Foo"):
warn_and_log("Foo!")

Expand Down

0 comments on commit a09dd6d

Please sign in to comment.