Browse Source

py23-nize ytest.py: fix load canonical data

fix load canonical data

YMAKE_USE_PY3
snermolaev 1 year ago
parent
commit
998d1d441b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/plugins/ytest.py

+ 1 - 1
build/plugins/ytest.py

@@ -1191,7 +1191,7 @@ def get_canonical_test_resources(unit):
 
 def _load_canonical_file(filename, unit_path):
     try:
-        with open(filename) as results_file:
+        with open(filename, 'rb') as results_file:
             return json.load(results_file)
     except Exception as e:
         print("malformed canonical data in {}: {} ({})".format(unit_path, e, filename), file=sys.stderr)