summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/modules_sys_stdassign.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpydiff/modules_sys_stdassign.py')
-rw-r--r--tests/cpydiff/modules_sys_stdassign.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cpydiff/modules_sys_stdassign.py b/tests/cpydiff/modules_sys_stdassign.py
new file mode 100644
index 0000000000..096af430e4
--- /dev/null
+++ b/tests/cpydiff/modules_sys_stdassign.py
@@ -0,0 +1,9 @@
+"""
+categories: Modules,sys
+description: Override sys.stdin, sys.stdout and sys.stderr. Impossible as they are stored in read-only memory.
+cause: Unknown
+workaround: Unknown
+"""
+import sys
+sys.stdin = None
+print(sys.stdin)