diff --git a/os/test_rw.py b/os/test_rw.py new file mode 100644 index 00000000..956d3276 --- /dev/null +++ b/os/test_rw.py @@ -0,0 +1,6 @@ +import os + + +assert os.write(1, "hello\n") == len("hello\n") +data = os.read(0, 256) +os.write(2, "read: %s\n" % data)