diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 67fec60263a..0c3fc31b93a 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1122,8 +1122,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'])