json/schema: delete intermediate test files

This commit is contained in:
Danny Robson 2018-07-12 15:10:04 +10:00
parent 647af5504b
commit 85b5853f7f

View File

@ -61,7 +61,7 @@ def test_good(schema:str, dir:str) -> int:
# a two stage check: # a two stage check:
# * apply the schema to the test file # * apply the schema to the test file
# * test it matches the truth file # * test it matches the truth file
with tempfile.NamedTemporaryFile(delete=False) as out: with tempfile.NamedTemporaryFile(delete=True) as out:
subprocess.check_call([validate, schema, test], stdout=out) subprocess.check_call([validate, schema, test], stdout=out)
subprocess.check_call([compare, out.name, truth]) subprocess.check_call([compare, out.name, truth])
success = True success = True