Skip to content

Commit 8c14709

Browse files
committed
test(PARSE-01): make isolated oracle output UTF-8
1 parent 96ef3d5 commit 8c14709

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/test_compiler_contract.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import ast
22
import json
3-
import os
43
from pathlib import Path
54
import subprocess
65
import sys
@@ -18,9 +17,8 @@ def test_reference_behavior_and_feature_boundaries(self):
1817
for case in corpus["cases"]:
1918
with self.subTest(case=case["id"]):
2019
result = subprocess.run(
21-
[sys.executable, "-I", "-c", case["source"]],
20+
[sys.executable, "-I", "-X", "utf8", "-c", case["source"]],
2221
capture_output=True, text=True, encoding="utf-8", timeout=5,
23-
env={**os.environ, "PYTHONIOENCODING": "utf-8"},
2422
)
2523
self.assertEqual(result.returncode, 0, result.stderr)
2624
self.assertEqual(result.stdout.replace("\r\n", "\n"), case["stdout"])

0 commit comments

Comments
 (0)