Skip to content

Purpose of ConfTestImportFailure; prevents --pdb #7150

@chaoflow

Description

@chaoflow

Using latest master exceptions during import of conftest files are caught and turned into ConftestImportFailure(conftestpath, sys.exc_info()).

Removing the try/except I can debug the original exception using pytest --pdb, which is not possible if the try/except in place.

What is the purpose for this / would it be an option to drop the try/except?

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: debuggingrelated to the debugging builtin plugintopic: configrelated to config handling, argument parsing and config file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions