Skip to content

deprecate and remove pytest_collect_directory as it is no longer of use #571

@pytestbot

Description

@pytestbot

Originally reported by: BitBucket: eevee, GitHub: eevee


It can't programmatically stop recursing into a directory — its return value is ignored. (Granted, pytest_ignore_collect can do this.)

It can't mark the directory as skip — calling pytest.skip will end collection entirely.

It can't collect the directory itself as an Item — again, its return value is ignored.

I feel some potential has been lost here. :)

(I have a bunch of test files for a compiler project, where each file is effectively a single test, and I wanted to group them in the default reporting by the directory that contains them, rather than have each of some hundred test files lists on its own line. Ended up doing it by hacking nodeid.)


Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: collectionrelated to the collection phasetype: removalmarks the actual removal of a feature, usually done in major releases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions