diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-10-05 18:13:05 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2020-10-05 18:33:17 -0700 |
commit | 33d119f71a60d1b41686c04a52c3a570fdcd506c (patch) | |
tree | 860431d60652d573998855f45b1ca868700032b1 /testing/logging | |
parent | 703e89134c2b0c21225014e3a89c17ab062c0ab9 (diff) | |
download | pytest-33d119f71a60d1b41686c04a52c3a570fdcd506c.tar.gz |
py36+: com2ann
Diffstat (limited to 'testing/logging')
-rw-r--r-- | testing/logging/test_formatter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/logging/test_formatter.py b/testing/logging/test_formatter.py index a90384a95..335166caa 100644 --- a/testing/logging/test_formatter.py +++ b/testing/logging/test_formatter.py @@ -41,7 +41,7 @@ def test_multiline_message() -> None: logfmt = "%(filename)-25s %(lineno)4d %(levelname)-8s %(message)s" - record = logging.LogRecord( + record: Any = logging.LogRecord( name="dummy", level=logging.INFO, pathname="dummypath", @@ -49,7 +49,7 @@ def test_multiline_message() -> None: msg="Test Message line1\nline2", args=(), exc_info=None, - ) # type: Any + ) # this is called by logging.Formatter.format record.message = record.getMessage() |