Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pluggy/_warnings.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from typing import final
4class PluggyWarning(UserWarning):
5 """Base class for all warnings emitted by pluggy."""
7 __module__ = "pluggy"
10@final
11class PluggyTeardownRaisedWarning(PluggyWarning):
12 """A plugin raised an exception during an :ref:`old-style hookwrapper
13 <old_style_hookwrappers>` teardown.
15 Such exceptions are not handled by pluggy, and may cause subsequent
16 teardowns to be executed at unexpected times, or be skipped entirely.
18 This is an issue in the plugin implementation.
20 If the exception is unintended, fix the underlying cause.
22 If the exception is intended, switch to :ref:`new-style hook wrappers
23 <hookwrappers>`, or use :func:`result.force_exception()
24 <pluggy.Result.force_exception>` to set the exception instead of raising.
25 """
27 __module__ = "pluggy"