summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-30 13:43:38 (GMT)
committerGitHub <noreply@github.com>2021-08-30 13:43:38 (GMT)
commit243b8de0b15061704581974c0a27db1232a43b93 (patch)
tree8e2dcf6fe1afed1fbefc7464c814903932e86ff1 /Misc
parentfe997e1a67835a929705c8c305d41c4d7dd326e3 (diff)
downloadcpython-243b8de0b15061704581974c0a27db1232a43b93.zip
cpython-243b8de0b15061704581974c0a27db1232a43b93.tar.gz
cpython-243b8de0b15061704581974c0a27db1232a43b93.tar.bz2
bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030)
Previously it returned None if the test class or method was decorated with a skipping decorator. Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com> (cherry picked from commit 7e246a3a7b43762480ee4fe0cfb859e8e997a8c8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-29-14-49-22.bpo-41620.WJ6PFL.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-29-14-49-22.bpo-41620.WJ6PFL.rst b/Misc/NEWS.d/next/Library/2021-08-29-14-49-22.bpo-41620.WJ6PFL.rst
new file mode 100644
index 0000000..7674d4c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-29-14-49-22.bpo-41620.WJ6PFL.rst
@@ -0,0 +1,3 @@
+:meth:`~unittest.TestCase.run` now always return a
+:class:`~unittest.TestResult` instance. Previously it returned ``None`` if
+the test class or method was decorated with a skipping decorator.