diff options
author | 2020-05-25 12:04:50 -0700 | |
---|---|---|
committer | 2020-05-25 12:04:50 -0700 | |
commit | 87d42add019e8ef1bad5d9593f6ed5a803e4d153 (patch) | |
tree | 38bb25d4ff4c4abfa906b84d4a61073c84d67c1e /tests | |
parent | Support validating collection types for constants (diff) |
Improve output of section name in config validation subtests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/test_constants.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/test_constants.py b/tests/bot/test_constants.py index 2937b6189..f10d6fbe8 100644 --- a/tests/bot/test_constants.py +++ b/tests/bot/test_constants.py @@ -43,7 +43,7 @@ class ConstantsTests(unittest.TestCase): ) for section in sections: for name, annotation in section.__annotations__.items(): - with self.subTest(section=section, name=name, annotation=annotation): + with self.subTest(section=section.__name__, name=name, annotation=annotation): value = getattr(section, name) origin = typing.get_origin(annotation) annotation_args = typing.get_args(annotation) |