From 86c7507233929366ff17c9666200a33123491a8e Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Tue, 7 Feb 2017 15:55:37 +1100 Subject: tests/cpydiff: Add initial set of tests for uPy-CPython differences. These tests are intended to fail, as they provide a programatic record of differences between uPy and CPython. They also contain a special comment at the start of the file which has meta-data describing the difference, including known causes and known workarounds. --- tests/cpydiff/modules_sys_stdassign.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/cpydiff/modules_sys_stdassign.py (limited to 'tests/cpydiff/modules_sys_stdassign.py') diff --git a/tests/cpydiff/modules_sys_stdassign.py b/tests/cpydiff/modules_sys_stdassign.py new file mode 100644 index 000000000..096af430e --- /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) -- cgit v1.2.3