summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_posix.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/vfs_posix.py')
-rw-r--r--tests/extmod/vfs_posix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/vfs_posix.py b/tests/extmod/vfs_posix.py
index 2a14fc207..d19323669 100644
--- a/tests/extmod/vfs_posix.py
+++ b/tests/extmod/vfs_posix.py
@@ -42,8 +42,8 @@ f.close()
# close on a closed file should succeed
f.close()
-# construct a file object using the type constructor, with a raw fileno
-f = type(f)(2)
+# construct a file object with a raw fileno
+f = open(2)
print(f)
# file read