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.
This commit is contained in:
parent
80aca27a40
commit
5c34c2ff7f
|
@ -3,13 +3,13 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if not hasattr(os, "unlink"):
|
if not hasattr(os, "remove"):
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
# cleanup in case testfile exists
|
# cleanup in case testfile exists
|
||||||
try:
|
try:
|
||||||
os.unlink("testfile")
|
os.remove("testfile")
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -32,6 +32,6 @@ f.close()
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
try:
|
try:
|
||||||
os.unlink("testfile")
|
os.remove("testfile")
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -3,13 +3,13 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if not hasattr(os, "unlink"):
|
if not hasattr(os, "remove"):
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
# cleanup in case testfile exists
|
# cleanup in case testfile exists
|
||||||
try:
|
try:
|
||||||
os.unlink("testfile")
|
os.remove("testfile")
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -42,6 +42,6 @@ f.close()
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
try:
|
try:
|
||||||
os.unlink("testfile")
|
os.remove("testfile")
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue