Skip to content

Commit 6d2a547

Browse files
committed
Deal with non-utf8 encodings in coverage
1 parent 1816895 commit 6d2a547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ def python_coverage(args):
14721472
for filename in filenames:
14731473
if filename.endswith(".py"):
14741474
fullname = os.path.join(dirpath, filename)
1475-
with open(fullname, 'r') as f:
1475+
with open(fullname, 'rb') as f:
14761476
try:
14771477
compile(f.read(), fullname, 'exec')
14781478
except BaseException as e:

0 commit comments

Comments
 (0)