Skip to content

Testing mark misuse with pluggy 1.4.0 #11858

Answered by bluetech
jwodder asked this question in Q&A
Discussion options

You must be logged in to vote

Right, so the cause is hidden at the bottom there:

INTERNALERROR> pluggy.PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
INTERNALERROR> Plugin: fail-slow, Hook: pytest_runtest_makereport
INTERNALERROR> UsageError: @pytest.mark.fail_slow() takes exactly one argument
INTERNALERROR> For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning

The PluggyTeardownRaisedWarning warning is new in pluggy 1.4. Basically, you must not raise an exception during an "old-style" hookwrapper teardown, because it then prevents all subsequent teardowns from executing. The appropriate fix depends a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jwodder
Comment options

@bluetech
Comment options

Answer selected by jwodder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants