mirror of
https://github.com/google/brotli.git
synced 2024-12-26 17:51:04 +00:00
python/tests: clean up generated files if successful
This commit is contained in:
parent
a8d1bf5266
commit
f66c7c5442
@ -24,4 +24,7 @@ for filename in glob.glob("testdata/*.compressed*"):
|
||||
env=TEST_ENV)
|
||||
if diff_q(uncompressed, expected) != 0:
|
||||
sys.exit(1)
|
||||
os.unlink(uncompressed)
|
||||
try:
|
||||
os.unlink(uncompressed)
|
||||
except OSError:
|
||||
pass
|
||||
|
@ -34,3 +34,8 @@ for filename in INPUTS.splitlines():
|
||||
uncompressed, "--custom-dictionary", filename], env=TEST_ENV)
|
||||
if diff_q(filename, uncompressed) != 0:
|
||||
sys.exit(1)
|
||||
try:
|
||||
os.unlink(compressed)
|
||||
os.unlink(uncompressed)
|
||||
except OSError:
|
||||
pass
|
||||
|
@ -41,3 +41,8 @@ for filename in INPUTS.splitlines():
|
||||
env=TEST_ENV)
|
||||
if diff_q(filename, uncompressed) != 0:
|
||||
sys.exit(1)
|
||||
try:
|
||||
os.unlink(compressed)
|
||||
os.unlink(uncompressed)
|
||||
except OSError:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user