Correct error on test teardown.

This commit is contained in:
Russell Keith-Magee 2025-07-30 15:01:59 +08:00
parent 076758e202
commit dfef37b65e
No known key found for this signature in database
GPG Key ID: 3D2DAB6A37BB5BC3

View File

@ -317,4 +317,8 @@ 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:
# If the test was skipped or failed, the file won't exist,
pass