Skip to content
Snippets Groups Projects
Commit 5c34c2ff authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George
Browse files

tests/io: Update tests to use uos.remove() instead of uos.unlink().

After Unix port switches from one to another, to be consistent with
baremetal ports.
parent 80aca27a
Branches
No related tags found
No related merge requests found
......@@ -3,13 +3,13 @@ try:
except ImportError:
import os
if not hasattr(os, "unlink"):
if not hasattr(os, "remove"):
print("SKIP")
raise SystemExit
# cleanup in case testfile exists
try:
os.unlink("testfile")
os.remove("testfile")
except OSError:
pass
......@@ -32,6 +32,6 @@ f.close()
# cleanup
try:
os.unlink("testfile")
os.remove("testfile")
except OSError:
pass
......@@ -3,13 +3,13 @@ try:
except ImportError:
import os
if not hasattr(os, "unlink"):
if not hasattr(os, "remove"):
print("SKIP")
raise SystemExit
# cleanup in case testfile exists
try:
os.unlink("testfile")
os.remove("testfile")
except OSError:
pass
......@@ -42,6 +42,6 @@ f.close()
# cleanup
try:
os.unlink("testfile")
os.remove("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