Catch error when removing temporary file

This commit is contained in:
Andrew Murray 2025-07-26 16:12:47 +10:00
parent 295ccec440
commit 7f19e1cba9

View File

@ -317,4 +317,7 @@ int main(int argc, char* argv[])
assert process.returncode == 0 assert process.returncode == 0
def teardown_method(self) -> None: def teardown_method(self) -> None:
os.remove("embed_pil.c") try:
os.remove("embed_pil.c")
except FileNotFoundError:
pass