summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2018-11-26 08:52:18 +0300
committerDamien George <damien.p.george@gmail.com>2018-11-26 23:27:28 +1100
commit5c34c2ff7f0c44ec9e1d77059162584c6bd99c92 (patch)
tree6c8fe68018f22f11bd33d0d48df020b369b50ec3
parent80aca27a40a76e57d4ca12965d1a6f5c055d268c (diff)
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.
-rw-r--r--tests/io/open_append.py6
-rw-r--r--tests/io/open_plus.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/io/open_append.py b/tests/io/open_append.py
index a696823bc..49cdd094b 100644
--- a/tests/io/open_append.py
+++ b/tests/io/open_append.py
@@ -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
diff --git a/tests/io/open_plus.py b/tests/io/open_plus.py
index bba96fa2f..3cb2330ee 100644
--- a/tests/io/open_plus.py
+++ b/tests/io/open_plus.py
@@ -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