Skip to content
Snippets Groups Projects
Commit d292a81e authored by Damien George's avatar Damien George
Browse files

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

parent 22ff397f
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment