From bd12369531a3f23f8c38341664d6759492e5edde Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Mon, 28 Nov 2022 11:24:07 -0500 Subject: [PATCH] Minor fix for test case class names (for format tests). They were showing up incorrectly in runner output because the default __name__ is wrong for these. --- jsonschema/tests/test_jsonschema_test_suite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsonschema/tests/test_jsonschema_test_suite.py b/jsonschema/tests/test_jsonschema_test_suite.py index 1e583659a..42337ed48 100644 --- a/jsonschema/tests/test_jsonschema_test_suite.py +++ b/jsonschema/tests/test_jsonschema_test_suite.py @@ -407,6 +407,7 @@ def leap_second(test): TestDraft201909Format = DRAFT201909.to_unittest_testcase( DRAFT201909.format_tests(), + name="TestDraft201909Format", Validator=jsonschema.Draft201909Validator, format_checker=jsonschema.Draft201909Validator.FORMAT_CHECKER, skip=lambda test: ( @@ -532,6 +533,7 @@ def leap_second(test): TestDraft202012Format = DRAFT202012.to_unittest_testcase( DRAFT202012.format_tests(), + name="TestDraft202012Format", Validator=jsonschema.Draft202012Validator, format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER, skip=lambda test: (