Skip to content

Commit 7e4f419

Browse files
committed
Document getName() method and move release notes.
1 parent 1da63a8 commit 7e4f419

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Doc/library/unittest.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,6 +2204,12 @@ Loading and running tests
22042204
.. versionchanged:: 3.12
22052205
Added the *durations* keyword parameter.
22062206

2207+
.. method:: getName(test)
2208+
2209+
Return a test name used in test results.
2210+
2211+
.. versionadded:: 3.14
2212+
22072213
.. data:: defaultTestLoader
22082214

22092215
Instance of the :class:`TestLoader` class intended to be shared. If no

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,12 +1184,6 @@ unicodedata
11841184
* The Unicode database has been updated to version 15.1.0. (Contributed by
11851185
James Gerity in :gh:`109559`.)
11861186

1187-
unittest
1188-
--------
1189-
1190-
* The new ``TextTestResult.getName()`` method allows customizing test names in
1191-
test results.
1192-
11931187
venv
11941188
----
11951189

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ symtable
135135

136136
(Contributed by Bénédikt Tran in :gh:`120029`.)
137137

138+
unittest
139+
--------
140+
141+
* The new :meth:`.TextTestResult.getName` method allows customizing test names
142+
in test results.
138143

139144
Optimizations
140145
=============

0 commit comments

Comments
 (0)