From b90f57d25c43f797f8afdb9f5a336dac5631c28a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 5 Mar 2020 03:13:28 +0100 Subject: [PATCH] Remove wrong/outdated doc with UnformattedWarning It was introduced in da6830f19 (added to `_pytest.deprecated`, but then moved to `_pytest.warning_types`). --- src/_pytest/warning_types.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_pytest/warning_types.py b/src/_pytest/warning_types.py index 87ab72c2d..e99de5c47 100644 --- a/src/_pytest/warning_types.py +++ b/src/_pytest/warning_types.py @@ -90,8 +90,6 @@ _W = TypeVar("_W", bound=PytestWarning) @attr.s class UnformattedWarning(Generic[_W]): """Used to hold warnings that need to format their message at runtime, as opposed to a direct message. - - Using this class avoids to keep all the warning types and messages in this module, avoiding misuse. """ category = attr.ib(type="Type[_W]")