Skip to content

Commit 7ee8aba

Browse files
committed
Addresses review comments on gh-134567
1 parent 766d6a2 commit 7ee8aba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ Test cases
11471147
:const:`logging.ERROR`). The default is :const:`logging.INFO`.
11481148

11491149
If given, *formatter* should be a :class:`logging.Formatter` object.
1150-
The default is a formatter with
1150+
The default is a formatter with format string
11511151
``"%(levelname)s:%(name)s:%(message)s"``
11521152

11531153
The test passes if at least one message emitted inside the ``with``
@@ -1178,7 +1178,7 @@ Test cases
11781178
.. versionadded:: 3.4
11791179

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

11841184
.. method:: assertNoLogs(logger=None, level=None)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Expose log formatter to users in TestCase.assertLogs.
2-
:func:`unittest.TestCase.assertLogs` will now accept a formatter argument so your assertions can match a custom format where you are using one.
1+
Expose log formatter to users in TestCase.assertLogs.
2+
:func:`unittest.TestCase.assertLogs` will now optionally accept a formatter that will be used to format the strings in output if provided.

0 commit comments

Comments
 (0)