From 1e19b24ea0081cde0cbccfecd9698a0b55a4450c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 8 Feb 2014 21:15:46 +0200 Subject: io.File, socket types: Add fileno() method. Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it. --- tests/io/file-stdio.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/io/file-stdio.py (limited to 'tests/io/file-stdio.py') diff --git a/tests/io/file-stdio.py b/tests/io/file-stdio.py new file mode 100644 index 000000000..cbdb07016 --- /dev/null +++ b/tests/io/file-stdio.py @@ -0,0 +1,4 @@ +import sys + +print(sys.stdin.fileno()) +print(sys.stdout.fileno()) -- cgit v1.2.3