Skip to content

Commit b281903

Browse files
committed
tests: fix test_record_writes_stamp expecting gnu on Windows (should be msvc)
1 parent adebd02 commit b281903

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎cuda_bindings/tests/test_build_hooks.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def test_changed_toolchain_forces_rebuild(self, stamp):
191191

192192
@pytest.mark.agent_authored(model="glm-5.2")
193193
def test_record_writes_stamp(self, stamp):
194-
# record_build_toolchain re-derives from env (CUDA_PYTHON_TOOLCHAIN unset → gnu).
194+
# record_build_toolchain re-derives from env (CUDA_PYTHON_TOOLCHAIN unset →
195+
# platform default: gnu on Linux, msvc on Windows).
195196
build_hooks.record_build_toolchain()
196-
assert stamp.read_text().strip() == "gnu"
197+
expected = "msvc" if sys.platform == "win32" else "gnu"
198+
assert stamp.read_text().strip() == expected

0 commit comments

Comments
 (0)