os: Add simple read/write test.

asyncio-segfault
Paul Sokolovsky 2014-04-19 20:35:25 +03:00
rodzic effbf07c9e
commit ef8aa989d7
1 zmienionych plików z 6 dodań i 0 usunięć

6
os/test_rw.py 100644
Wyświetl plik

@ -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)