_pytest.warning_types module

class UnformattedWarning(*args, **kwds)[source]

Bases: typing.Generic

A warning meant to be formatted during runtime.

This is used to hold warnings that need to format their message at runtime, as opposed to a direct message.

format(**kwargs: Any) → _W[source]

Returns an instance of the warning category, formatted with given kwargs