File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -276,7 +276,8 @@ typing
276276
277277unittest
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 `.)
You can’t perform that action at this time.
0 commit comments