From 487cee5ac474ec5971fad94ecbd85075ba5dbc92 Mon Sep 17 00:00:00 2001 From: Loppin Vincent Date: Wed, 20 Jun 2018 21:58:01 +0200 Subject: Fix check.py on windows platform (#1605) Fix some file reading & endline issues on windows platform. --- scripts/test/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/test/shared.py') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index a0bce3dd5..52dd74fd7 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -312,7 +312,7 @@ def fail_if_not_contained(actual, expected): def fail_if_not_identical_to_file(actual, expected_file): - with open(expected_file, 'rb') as f: + with open(expected_file, 'rb' if expected_file.endswith(".wasm") else 'r') as f: fail_if_not_identical(actual, f.read(), fromfile=expected_file) -- cgit v1.2.3