json/schema: delete intermediate test files
This commit is contained in:
parent
647af5504b
commit
85b5853f7f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user