mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-15 09:44:46 +03:00
Remove file after test completion
This commit is contained in:
parent
91bbeb5dcb
commit
a426eb55af
|
@ -276,6 +276,7 @@ class TestEmbeddable:
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.skip("Compiler could not be initialized")
|
pytest.skip("Compiler could not be initialized")
|
||||||
|
|
||||||
|
try:
|
||||||
with open("embed_pil.c", "w", encoding="utf-8") as fh:
|
with open("embed_pil.c", "w", encoding="utf-8") as fh:
|
||||||
home = sys.prefix.replace("\\", "\\\\")
|
home = sys.prefix.replace("\\", "\\\\")
|
||||||
fh.write(
|
fh.write(
|
||||||
|
@ -315,3 +316,5 @@ int main(int argc, char* argv[])
|
||||||
process = subprocess.Popen(["embed_pil.exe"], env=env)
|
process = subprocess.Popen(["embed_pil.exe"], env=env)
|
||||||
process.communicate()
|
process.communicate()
|
||||||
assert process.returncode == 0
|
assert process.returncode == 0
|
||||||
|
finally:
|
||||||
|
os.remove("embed_pil.c")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user