File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ except ImportError:
34
34
jsonschema = None
35
35
36
36
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__" )
38
39
SUITE_ROOT_DIR = os .path .join (ROOT_DIR , "tests" )
39
40
40
41
REMOTES = {
@@ -159,7 +160,7 @@ class SanityTests(unittest.TestCase):
159
160
self .fail (str (error ))
160
161
161
162
def test_remote_schemas_are_updated (self ):
162
- for url , schema in REMOTES .iteritems ():
163
+ for url , schema in REMOTES .items ():
163
164
filepath = os .path .join (REMOTES_DIR , url )
164
165
with open (filepath ) as schema_file :
165
166
self .assertEqual (json .load (schema_file ), schema )
@@ -191,7 +192,7 @@ def main(arguments):
191
192
sys .exit (1 )
192
193
raise
193
194
194
- for url , schema in REMOTES .iteritems ():
195
+ for url , schema in REMOTES .items ():
195
196
filepath = os .path .join (arguments .out_dir , url )
196
197
197
198
try :
You can’t perform that action at this time.
0 commit comments