Skip to content

Keep temporary directory for failing tests only #8141

@nicoddemus

Description

@nicoddemus

Currently pytest will keep the last 3 root temporary directories for each testing session, for all tests.

This proposal is to change this behavior to only keep the directories for failed tests, instead of for all tests. This would save significant disk space for test suites which manipulate large amounts of data in the temporary directories.

The behavior of keeping the last 3 root temporary directories would be kept unchanged.

From: #8036 (comment)

EDIT: after some discussion, the full proposal is defined in #8141 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: tmpdirrelated to the tmpdir builtin plugintype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions