Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a80895 commit 2a9c227Copy full SHA for 2a9c227
1 file changed
Doc/library/unittest.rst
@@ -1150,8 +1150,8 @@ Test cases
1150
Example::
1151
1152
with self.assertLogs('foo', level='INFO') as cm:
1153
- logging.getLogger('foo').info('first message')
1154
- logging.getLogger('foo.bar').error('second message')
+ logging.getLogger('foo').info('first message')
+ logging.getLogger('foo.bar').error('second message')
1155
self.assertEqual(cm.output, ['INFO:foo:first message',
1156
'ERROR:foo.bar:second message'])
1157
0 commit comments