Files
make-cad/tests
NiJingzhe a452f10daf fix(render): close the supersample temp handle before vtkPNGWriter writes
Fixes #32. _write_window_supersampled held a NamedTemporaryFile handle open
while vtkPNGWriter opened the same path — Windows denies the second open,
so every default-supersample screenshot failed there (POSIX masked it). The
temp frame is now created with mkstemp, the handle closed before VTK runs,
and the file unlinked in a finally so render failures no longer leak
'.*-ssNx-*' siblings. Covered by new regression tests (downsample+cleanup
happy path, failure cleanup) that fail on the old form.
2026-09-27 00:47:26 +08:00
..