summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-03-18 08:49:57 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-03-18 08:49:57 (GMT)
commit3505bd82a9b6a06ca4d97b2386c8da167b387743 (patch)
treef3e86b9798fbd1e407d63a8280852937d0b09900 /Lib/test/test_logging.py
parente42ccd2bfd7a05a02c1020b819e4ee5b26041d01 (diff)
parentd55436ace3cb908e0f7a1f368a2cd8879175947d (diff)
downloadcpython-3505bd82a9b6a06ca4d97b2386c8da167b387743.zip
cpython-3505bd82a9b6a06ca4d97b2386c8da167b387743.tar.gz
cpython-3505bd82a9b6a06ca4d97b2386c8da167b387743.tar.bz2
Issue #23207: merged fix from 3.4.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index c8b6a98..c323a59 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3607,6 +3607,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 = [