diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-03-18 08:47:58 +0000 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-03-18 08:47:58 +0000 |
| commit | d55436ace3cb908e0f7a1f368a2cd8879175947d (patch) | |
| tree | 1b7dca536501e3f9ebb3cc51ffcfc1206ce12930 /Lib/test/test_logging.py | |
| parent | ab6b9f8a5b033abaa5a8c19ddc19ab402851c0d7 (diff) | |
| download | cpython-git-d55436ace3cb908e0f7a1f368a2cd8879175947d.tar.gz | |
Issue #23207: Improved kwarg validation.
Diffstat (limited to 'Lib/test/test_logging.py')
| -rw-r--r-- | Lib/test/test_logging.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 54be2176a8..8770e1b76c 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -3589,6 +3589,10 @@ class BasicConfigTest(unittest.TestCase): handlers=handlers) assertRaises(ValueError, logging.basicConfig, stream=stream, handlers=handlers) + # Issue 23207: test for invalid kwargs + assertRaises(ValueError, logging.basicConfig, loglevel=logging.INFO) + # Should pop both filename and filemode even if filename is None + logging.basicConfig(filename=None, filemode='a') def test_handlers(self): handlers = [ |
