From 6a3b6c2cee91a09243ed7db99a5bbd1539cc5a02 Mon Sep 17 00:00:00 2001
From: "Miss Islington (bot)"
 <31488909+miss-islington@users.noreply.github.com>
Date: Fri, 22 Jul 2022 09:45:20 -0700
Subject: [PATCH] Closes gh-95133: docs, fix indentation level in
 TestCase.assertLogs example (GH-95134)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

(cherry picked from commit 2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0)

Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
---
 Doc/library/unittest.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index e07a32b88b1..87571d896e1 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'])
 
-- 
GitLab