Files
DeepTutor/tests/core
RRFZ bd5c2854a3 fix(question): let mimic mode parse an uploaded exam PDF on Windows
Mimic mode wrote the uploaded paper into a NamedTemporaryFile with
delete=True and handed its name to the parse service while the handle
was still open. The parse service reopens the file by path to hash it
for the parse cache, and on Windows a file held with delete-on-close
cannot be reopened, so every uploaded paper failed with
PermissionError before any engine ran. The error is not a MinerUError,
so it escaped the capability's handler.

Write the paper into a TemporaryDirectory and close it before parsing.
The directory is removed afterwards, as the temporary file was.
2026-10-31 20:49:41 -04:00
..
2026-01-06 01:57:04 +08:00
2026-09-06 13:46:29 +08:00
2026-10-08 11:34:42 +08:00