diff --git a/changelog/5177.feature.rst b/changelog/5177.feature.rst new file mode 100644 index 00000000000..54bfa554e9f --- /dev/null +++ b/changelog/5177.feature.rst @@ -0,0 +1,14 @@ +Introduce new specific warning ``PytestWarning`` subclasses to make it easier for user to filter warnings based on the class, rather than on the message. The new subclasses are: + + +* ``PytestAssertRewriteWarning`` + +* ``PytestCacheWarning`` + +* ``PytestCollectionWarning`` + +* ``PytestConfigWarning`` + +* ``PytestUnhandledCoroutineWarning`` + +* ``PytestUnknownMarkWarning``