1. 13 Ock, 2003 1 kayıt (commit)
  2. 10 Ock, 2003 1 kayıt (commit)
  3. 11 Eyl, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      test_both(): I believe this was a typo: m is only defined if no · ccd9e75b
      Barry Warsaw yazdı
      exception occurred so it should only be closed in the else clause.
      Without this change we can an UnboundLocalError on Linux:
      
      Traceback (most recent call last):
        File "Lib/test/test_mmap.py", line 304, in ?
          test_both()
        File "Lib/test/test_mmap.py", line 208, in test_both
          m.close()
      UnboundLocalError: local variable 'm' referenced before assignment
      ccd9e75b
  4. 10 Eyl, 2002 2 kayıt (commit)
    • Tim Peters's avatar
      I left some debugging junk in here; removed it. Also replaced a few · 1b5112ac
      Tim Peters yazdı
      more instances of the bizarre "del f; del m" ways to spell .close() (del
      won't do any good here under Jython, etc).
      1b5112ac
    • Tim Peters's avatar
      A few days ago a test was added here to ensure that creating an mmap · 4f4f4d70
      Tim Peters yazdı
      with a size larger than the underlying file worked on Windows.  It
      does <wink>.  However, merely creating an mmap that way has the side
      effect of growing the file on disk to match the specified size.  A
      *later* test assumed that the file on disk was still exactly as it was
      before the new "size too big" test was added, but that's no longer true.
      So added a hack at the end of the "size too big" test to truncate the
      disk file back to its original size on Windows.
      4f4f4d70
  5. 07 Eyl, 2002 1 kayıt (commit)
  6. 05 Eyl, 2002 1 kayıt (commit)
  7. 23 Tem, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      Get rid of relative imports in all unittests. Now anything that · 04f357cf
      Barry Warsaw yazdı
      imports e.g. test_support must do so using an absolute package name
      such as "import test.test_support" or "from test import test_support".
      
      This also updates the README in Lib/test, and gets rid of the
      duplicate data dirctory in Lib/test/data (replaced by
      Lib/email/test/data).
      
      Now Tim and Jack can have at it. :)
      04f357cf
  8. 23 Nis, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      test_mmap started breaking on Windows, only when run after test_bsddb. · e12cda98
      Tim Peters yazdı
      On Win2K it thought 'foo' started at byte offset 0 instead of at the
      pagesize, and on Win98 it thought 'foo' didn't exist at all.  Somehow
      or other this is related to the new "in memory file" gimmicks in
      bsddb, but the old bsddb we use on Windows sucks so bad anyway I don't
      want to bother digging deeper.  Flushing the file in test_mmap after
      writing to it makes the problem go away, so good enough.
      e12cda98
  9. 18 Nis, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug 544733: Cygwin test_mmap fix for Python 2.2.1 · 5379dea2
      Tim Peters yazdı
      Close a file before trying to unlink it, and apparently Cygwin needs
      writes to an mmap'ed file to get flushed before they're visible.
      
      Bugfix candidate, but I think only for the 2.2 line (it's testing
      features that I think were new in 2.2).
      5379dea2
  10. 08 Mar, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug 515943: searching for data with \0 in mmap. · c9ffa068
      Tim Peters yazdı
      mmap_find_method():  this obtained the string to find via s#, but it
      ignored its length, acting as if it were \0-terminated instead.
      
      Someone please run on Linux too (the extended test_mmap works on Windows).
      
      Bugfix candidate.
      c9ffa068
  11. 13 Kas, 2001 2 kayıt (commit)
  12. 11 May, 2001 1 kayıt (commit)
  13. 10 May, 2001 1 kayıt (commit)
  14. 09 Şub, 2001 1 kayıt (commit)
  15. 17 Ock, 2001 1 kayıt (commit)
  16. 14 Ock, 2001 1 kayıt (commit)
  17. 12 Ara, 2000 1 kayıt (commit)
  18. 23 Eki, 2000 1 kayıt (commit)
  19. 04 Eyl, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      test_mmap wrote null bytes into its expected-output file; this caused me to · 50699215
      Tim Peters yazdı
      waste an hour tracking down an illusion; repaired it; writing/reading non-
      printable characters (except \t\r\n) into/outof text-mode files ain't
      defined x-platform, and at least some Windows text editors do surprising
      things in their presence.
      Also added a by-hand "build humber" to the Windows build, in an approximation
      of Python's inexplicable BUILD-number Unix scheme.  I'll try to remember to
      increment it each time I make a Windows installer available.  It's starting
      at 2, cuz I've put 2 installers out so far (both with BUILD #0).
      50699215
  20. 30 Tem, 2000 2 kayıt (commit)
  21. 11 Tem, 2000 2 kayıt (commit)
  22. 18 Haz, 2000 1 kayıt (commit)
  23. 05 Nis, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Mark Hammond: · 605843f0
      Fred Drake yazdı
      This patch fixes the mmap module on Windows 9x.
      
      Also updates the mmap test to remove the test file.
      605843f0
  24. 31 Mar, 2000 2 kayıt (commit)
  25. 30 Mar, 2000 1 kayıt (commit)