mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Closes #17540: Merged fix from 3.3.
This commit is contained in:
commit
04cc55a14c
3 changed files with 10 additions and 3 deletions
|
|
@ -2449,7 +2449,8 @@ class ConfigDictTest(BaseTest):
|
|||
"version": 1,
|
||||
"formatters": {
|
||||
"mySimpleFormatter": {
|
||||
"format": "%(asctime)s (%(name)s) %(levelname)s: %(message)s"
|
||||
"format": "%(asctime)s (%(name)s) %(levelname)s: %(message)s",
|
||||
"style": "$"
|
||||
}
|
||||
},
|
||||
"handlers": {
|
||||
|
|
@ -2851,6 +2852,8 @@ class ConfigDictTest(BaseTest):
|
|||
self.apply_config(self.out_of_order)
|
||||
handler = logging.getLogger('mymodule').handlers[0]
|
||||
self.assertIsInstance(handler.target, logging.Handler)
|
||||
self.assertIsInstance(handler.formatter._style,
|
||||
logging.StringTemplateStyle)
|
||||
|
||||
def test_baseconfig(self):
|
||||
d = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue