mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23207: merged fix from 3.4.
This commit is contained in:
commit
3505bd82a9
2 changed files with 5 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue