upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorOreoFR <29048345+OreoFR@users.noreply.github.com>2026-11-30 14:19:18 +0100
committerOreoFR <29048345+OreoFR@users.noreply.github.com>2026-11-30 14:19:18 +0100
commitc3f63575a260a24a815b03a3dec3653fa6607078 (patch)
tree192da0de04ff1d120467b78badcf986ea6f4d90a /tests/test_run_gpu_tests_python_assembler.py
parentbe581760b27f260b0026e51d4d7289428ec1873f (diff)
parentf9f3ec4c68de13f0fe167f7619072613ba77d1c8 (diff)
Merge origin/main (f9f3ec4c6) into the carry of #1726
Current main after #2566; no new conflicts on top of the earlier carry merge. Co-authored-by: TanmaySatyam <lavidivwaker@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
-rw-r--r--tests/test_run_gpu_tests_python_assembler.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_run_gpu_tests_python_assembler.py b/tests/test_run_gpu_tests_python_assembler.py
index d817f4ec0..fd61b6a9d 100644
--- a/tests/test_run_gpu_tests_python_assembler.py
+++ b/tests/test_run_gpu_tests_python_assembler.py
@@ -20,6 +20,14 @@ import run_gpu_tests
20 20
21 21
22class PythonAssemblerTests(unittest.TestCase): 22class PythonAssemblerTests(unittest.TestCase):
23 def test_native_assembler_error_preserves_undecodable_diagnostics(self):
24 run = subprocess.run
25 child = [sys.executable, "-c", "import sys; sys.stderr.buffer.write(b'bad operand \\xff'); sys.exit(1)"]
26 with patch.object(run_gpu_tests.subprocess, "run", side_effect=lambda _, **kw: run(child, **kw)):
27 with self.assertRaises(RuntimeError) as raised:
28 run_gpu_tests.spirv_as("", "unused.spv")
29 self.assertIn(r"bad operand \xff", str(raised.exception))
30
23 def test_resolve_assembler_auto_and_explicit(self) -> None: 31 def test_resolve_assembler_auto_and_explicit(self) -> None:
24 self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python") 32 self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python")
25 self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as") 33 self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as")