From: Alexandru Mărășteanu Date: Fri, 22 Jul 2022 16:37:22 +0000 (+0300) Subject: Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134) X-Git-Tag: v3.12.0a1~886 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0;p=thirdparty%2FPython%2Fcpython.git Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 331f67cba23b..38be6b82b492 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'])