upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/semantic/test_mutations.py
diff options
context:
space:
mode:
authorDiesel <dev.diesel@proton.me>2026-11-21 22:44:07 +0100
committerDiesel <dev.diesel@proton.me>2026-11-21 22:44:07 +0100
commit5c1a1fbb6bf6f609eb4e61baa4961ce382743a4e (patch)
treeac8ad90058b97ab241fdc65edae3d4628d20ee1e /tests/semantic/test_mutations.py
parentc45309e29f21c1d5b75678db0e2dc2dd11cff25b (diff)
parent4e390e0871d7265e629b51aca8ff99a15a6a6845 (diff)
Merge main to include the compute Y/Z harness test fix
Diffstat (limited to 'tests/semantic/test_mutations.py')
-rw-r--r--tests/semantic/test_mutations.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/semantic/test_mutations.py b/tests/semantic/test_mutations.py
index cce2b723a..0caca1d46 100644
--- a/tests/semantic/test_mutations.py
+++ b/tests/semantic/test_mutations.py
@@ -103,8 +103,11 @@ MUTATIONS = [
103 103
104 104
105def run_semantics(tools_dir): 105def run_semantics(tools_dir):
106 env = dict(os.environ, LEONIDA_TOOLS_DIR=tools_dir, PYTHONDONTWRITEBYTECODE="1") 106 # The child finds test_ps_semantics through PYTHONPATH, not cwd=HERE: Windows refuses a working directory longer
107 p = subprocess.run([sys.executable, "-m", "unittest", "test_ps_semantics", "-v"], cwd=HERE, env=env, 107 # than 258 characters (WinError 267), which a checkout in a deep folder reaches.
108 path = os.pathsep.join(filter(None, [HERE, os.environ.get("PYTHONPATH")]))
109 env = dict(os.environ, LEONIDA_TOOLS_DIR=tools_dir, PYTHONDONTWRITEBYTECODE="1", PYTHONPATH=path)
110 p = subprocess.run([sys.executable, "-m", "unittest", "test_ps_semantics", "-v"], env=env,
108 capture_output=True, text=True, timeout=300) 111 capture_output=True, text=True, timeout=300)
109 return p.returncode, p.stdout + p.stderr 112 return p.returncode, p.stdout + p.stderr
110 113