From 2dfb0fea4f02cd8376fd76bd20805591e5dfa665 Mon Sep 17 00:00:00 2001 From: rajnisht7 Date: Tue, 27 Oct 2026 09:48:29 +0530 Subject: [PATCH] fix test the javascript side agrees Signed-off-by: rajnisht7 --- tests/test_integer_by_value.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_integer_by_value.py b/tests/test_integer_by_value.py index 3f059439..89c8d309 100644 --- a/tests/test_integer_by_value.py +++ b/tests/test_integer_by_value.py @@ -998,11 +998,13 @@ def test_the_javascript_side_agrees() -> None: node = shutil.which("node") if node is None: pytest.skip("Node is needed to run the JavaScript side of the proposal") - version = subprocess.run([node, "--version"], capture_output=True, text=True, check=True) + version = subprocess.run( + [node, "--version"], capture_output=True, text=True, encoding="utf-8", check=True + ) if int(version.stdout.strip().lstrip("v").split(".")[0]) < 20: pytest.skip("the JavaScript test runs on Node.js 20 or later") result = subprocess.run( [node, "--test", str(VECTORS / "spelling.test.mjs")], - capture_output=True, text=True, cwd=ROOT, + capture_output=True, text=True, encoding="utf-8", cwd=ROOT, ) assert result.returncode == 0, result.stdout + result.stderr