summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlexandru Mărășteanu <alexei@users.noreply.github.com>2022-07-22 16:37:22 (GMT)
committerGitHub <noreply@github.com>2022-07-22 16:37:22 (GMT)
commit2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0 (patch)
treef61ea313528d2a9a721f60774359f549807cbd95 /Doc
parent8a808952a61b4bd572d95f5efbff1680c59aa507 (diff)
downloadcpython-2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0.zip
cpython-2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0.tar.gz
cpython-2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0.tar.bz2
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 331f67c..38be6b8 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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'])