Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/13693.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an issue where output written to standard output or error could be lost when live logging emitted messages from background threads while using :fixture:`capfd` or :fixture:`capsys`.
4 changes: 3 additions & 1 deletion src/_pytest/_py/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,9 @@ def make_numbered_dir(
maximum one. The number is assumed to start directly after prefix.
if keep is true directories with a number less than (maxnum-keep)
will be removed. If .lock files are used (lock_timeout non-zero),
algorithm is multi-process safe.
they prevent cleanup of directories currently in use. However, the
allocation and cleanup operations are not safe when called concurrently
from multiple processes; see pytest-dev/pytest#11603.
"""
if rootdir is None:
rootdir = cls.get_temproot()
Expand Down
Loading