summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2017-10-19 20:08:25 +0200
committerJulian Berman <Julian@GrayVines.com>2017-10-19 20:08:25 +0200
commit5f3cd4a489ac762c7e9da0743d609101680fdd9f (patch)
tree63ffcba964cc8fe9d2d041ad5537396182824ad9
parent0252d77fce24e14e38012e386cede7f2cdceadee (diff)
downloadjsonschema-5f3cd4a489ac762c7e9da0743d609101680fdd9f.tar.gz
Style.
-rw-r--r--jsonschema/tests/_suite.py11
-rw-r--r--jsonschema/tests/test_jsonschema_test_suite.py9
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()