Skip to content
Snippets Groups Projects
Unverified Commit 6a3b6c2c authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)


(cherry picked from commit 2a9c227a)

Co-authored-by: default avatarAlexandru Mărășteanu <alexei@users.noreply.github.com>
parent 12b56e4b
No related branches found
No related tags found
No related merge requests found
......@@ -1150,8 +1150,8 @@ Test cases
Example::
with self.assertLogs('foo', level='INFO') as cm:
logging.getLogger('foo').info('first message')
logging.getLogger('foo.bar').error('second message')
logging.getLogger('foo').info('first message')
logging.getLogger('foo.bar').error('second message')
self.assertEqual(cm.output, ['INFO:foo:first message',
'ERROR:foo.bar:second message'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment