summaryrefslogtreecommitdiff
path: root/tests/io/open_append.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io/open_append.py')
-rw-r--r--tests/io/open_append.py6
1 files changed, 3 insertions, 3 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