Skip to content

Commit 2119f3f

Browse files
authored
Properly order the actual and exepcted outputs in fail() and fail_if_not_identical_to_file() (WebAssembly#2649)
1 parent 2cc0aa2 commit 2119f3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/test/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def fail_if_not_contained(actual, expected):
370370
def fail_if_not_identical_to_file(actual, expected_file):
371371
binary = expected_file.endswith(".wasm") or type(actual) == bytes
372372
with open(expected_file, 'rb' if binary else 'r') as f:
373-
fail_if_not_identical(f.read(), actual, fromfile=expected_file)
373+
fail_if_not_identical(actual, f.read(), fromfile=expected_file)
374374

375375

376376
def get_test_dir(name):

0 commit comments

Comments
 (0)