summaryrefslogtreecommitdiff
path: root/tests/io/file1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io/file1.py')
-rw-r--r--tests/io/file1.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/io/file1.py b/tests/io/file1.py
index 2a46c9c63..de30045d3 100644
--- a/tests/io/file1.py
+++ b/tests/io/file1.py
@@ -44,3 +44,6 @@ try:
except OSError:
print("OSError")
f.close()
+
+# close() on a closed file
+f.close()