summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-08-19 07:00:11 (GMT)
committerGitHub <noreply@github.com>2018-08-19 07:00:11 (GMT)
commit77d5781835b6e0a132694ebadc22b1cbdb9913f8 (patch)
tree4f572a64ee84c9e8afb960e384181f1dd11d5c7f /Misc
parente349bf23584eef20e0d1e1b2989d9b1430f15507 (diff)
downloadcpython-77d5781835b6e0a132694ebadc22b1cbdb9913f8.zip
cpython-77d5781835b6e0a132694ebadc22b1cbdb9913f8.tar.gz
cpython-77d5781835b6e0a132694ebadc22b1cbdb9913f8.tar.bz2
bpo-34318: Convert deprecation warnings to errors in assertRaises() etc. (GH-8623)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-08-02-14-43-42.bpo-34318.GneiXs.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-08-02-14-43-42.bpo-34318.GneiXs.rst b/Misc/NEWS.d/next/Library/2018-08-02-14-43-42.bpo-34318.GneiXs.rst
new file mode 100644
index 0000000..4df4fe3
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-08-02-14-43-42.bpo-34318.GneiXs.rst
@@ -0,0 +1,7 @@
+:func:`~unittest.TestCase.assertRaises`,
+:func:`~unittest.TestCase.assertRaisesRegex`,
+:func:`~unittest.TestCase.assertWarns` and
+:func:`~unittest.TestCase.assertWarnsRegex` no longer success if the passed
+callable is None. They no longer ignore unknown keyword arguments in the
+context manager mode. A DeprecationWarning was raised in these cases
+since Python 3.5.