diff options
-rw-r--r-- | jsonschema/tests/_suite.py | 11 | ||||
-rw-r--r-- | jsonschema/tests/test_jsonschema_test_suite.py | 9 |
2 files changed, 6 insertions, 14 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py index 840bd8e..06fbd11 100644 --- a/jsonschema/tests/_suite.py +++ b/jsonschema/tests/_suite.py @@ -8,7 +8,6 @@ import os import re import subprocess import sys -import unittest from bp.filepath import FilePath from pyrsistent import pmap, pvector @@ -27,10 +26,12 @@ def _find_suite(): root = FilePath(jsonschema.__file__).parent().sibling("json") if not root.isdir(): raise ValueError( - "Can't find the JSON-Schema-Test-Suite directory. " - "Set the 'JSON_SCHEMA_TEST_SUITE' environment " - "variable or run the tests from alongside a checkout " - "of the suite.", + ( + "Can't find the JSON-Schema-Test-Suite directory. " + "Set the 'JSON_SCHEMA_TEST_SUITE' environment " + "variable or run the tests from alongside a checkout " + "of the suite." + ), ) return root diff --git a/jsonschema/tests/test_jsonschema_test_suite.py b/jsonschema/tests/test_jsonschema_test_suite.py index b3b49a9..a7e0c57 100644 --- a/jsonschema/tests/test_jsonschema_test_suite.py +++ b/jsonschema/tests/test_jsonschema_test_suite.py @@ -7,15 +7,7 @@ See https://github.com/json-schema/JSON-Schema-Test-Suite for details. """ -from contextlib import closing from decimal import Decimal -import glob -import json -import io -import itertools -import os -import re -import subprocess import sys import unittest @@ -27,7 +19,6 @@ from jsonschema import ( from jsonschema.compat import PY3 from jsonschema.tests.compat import mock from jsonschema.tests._suite import Suite -import jsonschema SUITE = Suite() |