Skip to content

Commit 8b2869d

Browse files
committed
More python 3 compatibility
1 parent f4fcb6e commit 8b2869d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/jsonschema_suite

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ except ImportError:
3434
jsonschema = None
3535

3636

37-
ROOT_DIR = os.path.join(os.path.dirname(__file__), os.pardir)
37+
ROOT_DIR = os.path.join(
38+
os.path.dirname(__file__), os.pardir).rstrip("__pycache__")
3839
SUITE_ROOT_DIR = os.path.join(ROOT_DIR, "tests")
3940

4041
REMOTES = {
@@ -159,7 +160,7 @@ class SanityTests(unittest.TestCase):
159160
self.fail(str(error))
160161

161162
def test_remote_schemas_are_updated(self):
162-
for url, schema in REMOTES.iteritems():
163+
for url, schema in REMOTES.items():
163164
filepath = os.path.join(REMOTES_DIR, url)
164165
with open(filepath) as schema_file:
165166
self.assertEqual(json.load(schema_file), schema)
@@ -191,7 +192,7 @@ def main(arguments):
191192
sys.exit(1)
192193
raise
193194

194-
for url, schema in REMOTES.iteritems():
195+
for url, schema in REMOTES.items():
195196
filepath = os.path.join(arguments.out_dir, url)
196197

197198
try:

0 commit comments

Comments
 (0)