Author: Armin Rigo <[email protected]>
Branch: fileops2
Changeset: r67208:ccfd00cd26be
Date: 2013-10-08 16:56 +0200
http://bitbucket.org/pypy/pypy/changeset/ccfd00cd26be/

Log:    More tests

diff --git a/rpython/rlib/test/test_rfile.py b/rpython/rlib/test/test_rfile.py
--- a/rpython/rlib/test/test_rfile.py
+++ b/rpython/rlib/test/test_rfile.py
@@ -147,23 +147,24 @@
         j = 0
         expected = []
         with open(fname, 'w') as f:
-            for i in range(150):
+            for i in range(250):
                 s = ''.join([chr(32+(k&63)) for k in range(j, j + i)])
                 j += 1
                 print >> f, s
         expected = open(fname).readlines()
         expected += ['', '']
-        assert len(expected) == 152
+        assert len(expected) == 252
 
         f = rfile.create_file(fname, 'r')
-        for j in range(152):
+        for j in range(252):
             got = f.readline()
             assert got == expected[j]
         f.close()
 
     def test_readline_without_eol_at_the_end(self):
         fname = str(self.tmpdir.join('file_readline_without_eol_at_the_end'))
-        for n in [1, 10, 97, 98, 99, 100, 101, 102, 103, 150]:
+        for n in [1, 10, 97, 98, 99, 100, 101, 102, 103, 150,
+                  196, 197, 198, 199, 200, 201, 202, 203, 204, 250]:
             s = ''.join([chr(32+(k&63)) for k in range(n)])
             with open(fname, 'wb') as f:
                 f.write(s)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to