Skip to content

Commit 61985c2

Browse files
committed
Re-order imports
1 parent af74846 commit 61985c2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gdcdictionary/schema_test.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
import json
1515
import os
1616
import unittest
17-
import yaml
18-
19-
from jsonschema import validate, ValidationError
2017

18+
import yaml
2119
from gdcdictionary import gdcdictionary
20+
from jsonschema import validate, ValidationError
2221

2322

2423
def load_yaml_schema(path):
@@ -219,7 +218,7 @@ def add_system_props(self, doc):
219218
validate_entity(entity, dictionary.schema)
220219
else:
221220
raise ValidationError("Invalid json")
222-
except ValidationError as e:
221+
except ValidationError:
223222
print("Invalid as expected.")
224223
else:
225224
raise ValueError("Expected invalid, but validated.")

0 commit comments

Comments
 (0)