diff --git a/changelog/2452.feature.rst b/changelog/2452.feature.rst new file mode 100644 index 000000000..847e9540f --- /dev/null +++ b/changelog/2452.feature.rst @@ -0,0 +1,5 @@ +Internal pytest warnings are now issued using the standard ``warnings`` module, making it possible to use +the standard warnings filters to manage those warnings. This introduces ``PytestWarning``, +``PytestDeprecationWarning`` and ``RemovedInPytest4Warning`` warning types as part of the public API. + +Consult `the documentation `_ for more info. diff --git a/changelog/2452.removal.rst b/changelog/2452.removal.rst new file mode 100644 index 000000000..3c60f8803 --- /dev/null +++ b/changelog/2452.removal.rst @@ -0,0 +1,2 @@ +The functions ``Node.warn`` and ``Config.warn`` have been deprecated. Instead of ``Node.warn`` users should now use +``Node.std_warn``, while ``Config.warn`` should be replaced by the standard ``warnings.warn``.