diff options
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py index d6235b01..67c56a37 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -239,3 +239,9 @@ class TestFileLike: s = cStringIO.StringIO("foobar\nfoobar") s = tcp.FileLike(s) assert s.readline(3) == "foo" + + def test_limitless(self): + s = cStringIO.StringIO("f"*(50*1024)) + s = tcp.FileLike(s) + ret = s.read(-1) + assert len(ret) == 50 * 1024 |