File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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 .
You can’t perform that action at this time.
0 commit comments