1. 06 Sep, 2001 6 commits
    • Steve Purcell's avatar
      Changed TestResult to store only the text representation of an error. · 7bb2962a
      Steve Purcell authored
      This patch is similar to that proposed by Jeremy. The proposed patch altered
      the interface of TestResult such that it would be passed the error
      information as a string rather than an exc_info() tuple.
      
      The implemented change leaves the interface untouched so that TestResults
      are still passed the tracebacks, but stor them in stringified form for
      later reporting.
      
      Notes:
      - Custom subclasses of TestResult written by users should be unaffected.
      - The existing 'unittestgui.py' will still work with this module after the
        change.
      - Support can later be added to pop into the debugger when an error occurs;
        this support should be added to a TestRunner rather than to TestCase itself,
        which this change will enable.
      
      (Jeremy, Fred, Guido: Thanks for all the feedback)
      7bb2962a
    • Martin v. Löwis's avatar
    • Mark Hammond's avatar
    • Mark Hammond's avatar
    • Tim Peters's avatar
      Dubious assumptions: · bf36b881
      Tim Peters authored
      1. That seeking beyond the end of a file increases the size of a file.
      2. That files so extended are magically filled with null bytes.
      
      I find no support for either in the C std, and #2 in particular turns out
      not to be true on Win32 (you apparently see whatever trash happened to be
      on disk).  Left #1 intact, but changed the test to check only bytes it
      explicitly wrote.  Also fiddled the "expected" vs "got" failure reports
      to consistently use repr (%r) -- they weren't readable otherwise.
      bf36b881
    • Tim Peters's avatar
      Enable large file support on Win32 systems. · 9a3669f4
      Tim Peters authored
      Curious:  the MS docs say stati64 etc are supported even on Win95, but
      Win95 doesn't support a filesystem that allows partitions > 2 Gb.
      
      test_largefile:  This was opening its test file in text mode.  I have no
      idea how that worked under Win64, but it sure needs binary mode on Win98.
      BTW, on Win98 test_largefile runs quickly (under a second).
      9a3669f4
  2. 05 Sep, 2001 34 commits