Skip to content

Commit ab3cd64

Browse files
committed
add temporary ignore for FileHandler stream close
1 parent a1967e9 commit ab3cd64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ def set_log_path(self, fname: str) -> None:
626626
finally:
627627
self.log_file_handler.release()
628628
if old_stream:
629-
old_stream.close()
629+
# https://github.com/python/typeshed/pull/5663
630+
old_stream.close() # type:ignore[attr-defined]
630631

631632
def _log_cli_enabled(self):
632633
"""Return whether live logging is enabled."""

0 commit comments

Comments
 (0)