diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-25 18:58:13 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-25 18:58:13 (GMT) |
commit | 8188f585b2c1d21c1b680181f38b45c4234c6865 (patch) | |
tree | 3ad6f3614671345e49338bbe8d36706cb5e52ef8 /Lib/test/test_logging.py | |
parent | acd9f7ce32b9d6cf819c99ee7728f9263f2bae47 (diff) | |
parent | 45dedaafc2d8f83c3021df28251a4a7dae067774 (diff) | |
download | cpython-8188f585b2c1d21c1b680181f38b45c4234c6865.zip cpython-8188f585b2c1d21c1b680181f38b45c4234c6865.tar.gz cpython-8188f585b2c1d21c1b680181f38b45c4234c6865.tar.bz2 |
Fixes #12637: Merged fix from 3.2 and added test.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 5d84114..793d29b 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -2923,6 +2923,8 @@ class LastResortTest(BaseTest): old_raise_exceptions = logging.raiseExceptions try: sys.stderr = sio = io.StringIO() + root.debug('This should not appear') + self.assertEqual(sio.getvalue(), '') root.warning('This is your final chance!') self.assertEqual(sio.getvalue(), 'This is your final chance!\n') #No handlers and no last resort, so 'No handlers' message |