-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
plugin: warningsrelated to the warnings builtin pluginrelated to the warnings builtin plugintopic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config file
Description
Refs: pytest-dev/pytest-django#874
The apply_warning_filters()
function, called during pytest initialization to parse filterwarnings
ini among others, imports the module of the indicated warning type, which can raise. If the import fails, pytest crashes with an ugly traceback (see referenced issue). We should probably catch the exception and raise a nicer message (while still displaying the original traceback somehow).
ewjoachim and charlesaracil-ulti
Metadata
Metadata
Assignees
Labels
plugin: warningsrelated to the warnings builtin pluginrelated to the warnings builtin plugintopic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config file