1. 08 Aug, 2002 2 commits
    • Guido van Rossum's avatar
      Major restructuring of _fileobject. Hopefully several things now work · 443fec3d
      Guido van Rossum authored
      correctly (the test at least succeed, but they don't test everything yet).
      
      Also fix a performance problem in read(-1): in unbuffered mode, this would
      read 1 byte at a time.  Since we're reading until EOF, that doesn't make
      sense.  Use the default buffer size if _rbufsize is <= 1.
      443fec3d
    • Guido van Rossum's avatar
      Replace docstrings on test functions witrh comments -- then unittest · 8c94383f
      Guido van Rossum authored
      prints function and module names, which is more informative now that
      we repeat some tests in slightly modified subclasses.
      
      Add a test for read() until EOF.
      
      Add test suites for line-buffered (bufsize==1) and a small custom
      buffer size (bufsize==2).
      
      Restructure testUnbufferedRead() somewhat to avoid a potentially
      infinite loop.
      8c94383f
  2. 07 Aug, 2002 27 commits
  3. 06 Aug, 2002 11 commits