Commit d292a81e authored by Damien George's avatar Damien George
Browse files

tests: Make io test cleanup after itself by removing 'testfile'.

parent 22ff397f
......@@ -8,6 +8,7 @@ if not hasattr(os, "unlink"):
print("SKIP")
sys.exit()
# cleanup in case testfile exists
try:
os.unlink("testfile")
except OSError:
......@@ -29,3 +30,9 @@ f.close()
f = open("testfile")
print(f.read())
f.close()
# cleanup
try:
os.unlink("testfile")
except OSError:
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment