Skip to content

Commit ec353d2

Browse files
committed
Resolves review comments from pr 134570
1 parent ff3e9af commit ec353d2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ Test cases
11481148

11491149
If given, *formatter* should be a :class:`logging.Formatter` object.
11501150
The default is a formatter with
1151-
``LOGGING_FORMAT = "%(levelname)s:%(name)s:%(message)s"``
1151+
``"%(levelname)s:%(name)s:%(message)s"``
11521152

11531153
The test passes if at least one message emitted inside the ``with``
11541154
block matches the *logger* and *level* conditions, otherwise it fails.
@@ -1177,7 +1177,7 @@ Test cases
11771177

11781178
.. versionadded:: 3.4
11791179

1180-
.. versionchanged:: 3.15
1180+
.. versionchanged:: next
11811181
Now accepts a formatter argument so your assertions can match
11821182
a custom format where you are using one.
11831183

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ typing
276276

277277
unittest
278278
--------
279-
* Expose log formatter to users in TestCase.assertLogs.
279+
280+
* Lets users specify formatter in TestCase.assertLogs.
280281
:func:`unittest.TestCase.assertLogs` will now accept a formatter
281282
argument so your assertions can match a custom format where you are using one.
282283
(Contributed by Garry Cairns in :gh:`134567`.)

0 commit comments

Comments
 (0)