Skip to content

Commit 28d5747

Browse files
committed
And the last stray warning.
1 parent 8e8fc6e commit 28d5747

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

jsonschema/tests/test_validators.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,23 @@ def setUp(self):
4747
)
4848

4949
def test_attrs(self):
50-
self.assertEqual(self.Validator.VALIDATORS, self.validators)
51-
self.assertEqual(self.Validator.META_SCHEMA, self.meta_schema)
52-
self.assertEqual(self.Validator.TYPE_CHECKER, self.type_checker)
50+
self.assertEqual(
51+
(
52+
self.Validator.VALIDATORS,
53+
self.Validator.META_SCHEMA,
54+
self.Validator.TYPE_CHECKER,
55+
), (
56+
self.validators,
57+
self.meta_schema,
58+
self.type_checker,
59+
),
60+
)
5361

5462
# Default types should still be set to the old default if not provided
5563
expected_types = {u"array", u"boolean", u"integer", u"null", u"number",
5664
u"object", u"string"}
5765
self.assertEqual(set(self.Validator.DEFAULT_TYPES), expected_types)
66+
self.assertEqual(len(self.flushWarnings()), 1)
5867

5968
def test_init(self):
6069
schema = {u"startswith": u"foo"}

0 commit comments

Comments
 (0)