Skip to content

Commit bd12369

Browse files
committed
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.
1 parent fb203a5 commit bd12369

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsonschema/tests/test_jsonschema_test_suite.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ def leap_second(test):
407407

408408
TestDraft201909Format = DRAFT201909.to_unittest_testcase(
409409
DRAFT201909.format_tests(),
410+
name="TestDraft201909Format",
410411
Validator=jsonschema.Draft201909Validator,
411412
format_checker=jsonschema.Draft201909Validator.FORMAT_CHECKER,
412413
skip=lambda test: (
@@ -532,6 +533,7 @@ def leap_second(test):
532533

533534
TestDraft202012Format = DRAFT202012.to_unittest_testcase(
534535
DRAFT202012.format_tests(),
536+
name="TestDraft202012Format",
535537
Validator=jsonschema.Draft202012Validator,
536538
format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER,
537539
skip=lambda test: (

0 commit comments

Comments
 (0)