summaryrefslogtreecommitdiff
path: root/tests/io/file_stdio.py
diff options
context:
space:
mode:
authorstephanelsmith <stephane.smith@titansensor.com>2023-07-26 02:52:56 +0000
committerDamien George <damien@micropython.org>2023-09-01 17:39:38 +1000
commitdb06041d59ef8d5524340c4d2c4490c8e770591f (patch)
treeb7470931bf9df7f4020708f77867a3a09ab393ef /tests/io/file_stdio.py
parent1c047742a273382241e8cfddb12a1d8b4f7f59ab (diff)
extmod/vfs_posix_file: Implement sys.std*.buffer objects.
Add the buffer attribute to sys.stdin, sys.stdout and sys.stderr. This provides raw access to underlying stdio streams for the unix port (and others that use VfsPosix). Signed-off-by: stephanelsmith <stephane.smith@titansensor.com>
Diffstat (limited to 'tests/io/file_stdio.py')
-rw-r--r--tests/io/file_stdio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/io/file_stdio.py b/tests/io/file_stdio.py
index cbdb07016..d714bffd4 100644
--- a/tests/io/file_stdio.py
+++ b/tests/io/file_stdio.py
@@ -2,3 +2,4 @@ import sys
print(sys.stdin.fileno())
print(sys.stdout.fileno())
+print(sys.stderr.fileno())