From 512465bc66082a37cb696ef7c78e3ee878ffd92f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 22 Jul 2014 00:11:37 +0300 Subject: [PATCH] tests: Add testcase for read by length past EOF. Currently broken for unicode input streams. --- tests/io/file_long_read.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/io/file_long_read.py diff --git a/tests/io/file_long_read.py b/tests/io/file_long_read.py new file mode 100644 index 0000000000..8bdd484504 --- /dev/null +++ b/tests/io/file_long_read.py @@ -0,0 +1,3 @@ +f = open("io/data/file1") +b = f.read(100) +print(len(b))