summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 2ff8c91..c9a051a 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2398,7 +2398,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": {
@@ -2728,6 +2729,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 = {