summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects ↵Serhiy Storchaka2018-06-051-0/+7
| | | | | | | | (GH-7381) (GH-7432) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* skip test on windowsBenjamin Peterson2016-10-061-0/+1
|
* fix bug in 48797808a302Benjamin Peterson2016-10-061-1/+1
|
* skip test if resizing is not supportedBenjamin Peterson2016-10-061-2/+5
|
* mmap: do all internal arithmetic with Py_ssize_t while being very careful ↵Benjamin Peterson2016-10-061-0/+10
| | | | about overflow
* Fixed typo.Serhiy Storchaka2014-08-191-2/+2
|
* Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.Serhiy Storchaka2014-08-191-1/+10
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-75/+73
|
* Silence deprecation warning in test_mmap for ValueError.message.Terry Jan Reedy2013-09-011-8/+4
| | | | Replacement is from 3.3, with 'p' added to make '...Regexp'.
* Issue #16743: Fix mmap overflow check on 32 bit WindowsRichard Oudkerk2013-02-131-0/+7
|
* #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-12/+9
| | | | was incomplete
* Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+16
|
* Fix potential resource leak in test_mmap.Nadeem Vawda2011-05-071-0/+1
|
* Issue #11277: Fix tests - crash will not trigger if the file is closed and ↵Nadeem Vawda2011-05-071-14/+12
| | | | reopened.
* Issue #11277: Add tests for mmap crash when using large sparse files on OS X.Nadeem Vawda2011-05-071-26/+34
| | | | | | Also, reduce code duplication in LargeMmapTests. Original patch by Steffen Daode Nurpmeso.
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue #11391: Writing to a mmap object created withAntoine Pitrou2011-03-061-0/+8
| | | | | `mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a TypeError. Patch by Charles-François Natali.
* Merged revisions 88486 via svnmerge fromAntoine Pitrou2011-02-211-3/+58
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........
* Merged revisions 88131 via svnmerge fromAntoine Pitrou2011-01-201-0/+13
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88131 | antoine.pitrou | 2011-01-20 22:07:24 +0100 (jeu., 20 janv. 2011) | 6 lines Issue #10955: Fix a potential crash when trying to mmap() a file past its length. Initial patch by Ross Lagerwall. This fixes a regression introduced by r88022. ........
* Merged revisions 88036 via svnmerge fromAntoine Pitrou2011-01-151-5/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88036 | antoine.pitrou | 2011-01-15 18:25:58 +0100 (sam., 15 janv. 2011) | 3 lines Fix mmap and test_mmap under Windows too (followup to r88022) ........
* Merged revisions 88022 via svnmerge fromAntoine Pitrou2011-01-151-0/+13
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88022 | antoine.pitrou | 2011-01-15 17:17:07 +0100 (sam., 15 janv. 2011) | 7 lines Issue #10916: mmap should not segfault when a file is mapped using 0 as length and a non-zero offset, and an attempt to read past the end of file is made (IndexError is raised instead). Patch by Ross Lagerwall. Requested by Georg. ........
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-15/+15
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 83407 via svnmerge fromBrian Curtin2010-08-011-1/+11
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83407 | brian.curtin | 2010-08-01 10:26:26 -0500 (Sun, 01 Aug 2010) | 3 lines Fix #8105. Add validation to mmap.mmap so invalid file descriptors don't cause a crash on Windows. ........
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-2/+2
|
* No behavior change.Hirokazu Yamamoto2009-04-041-2/+2
|
* bounds check arguments to mmap.move(). All of them. Really.Jack Diederich2009-04-011-7/+14
| | | | fixes crasher on OS X 10.5
* Issue #5387: Fixed mmap.move crash by integer overflow. (take2)Hirokazu Yamamoto2009-03-311-4/+16
|
* Issue #5387: Fixed mmap.move crash by integer overflow.Hirokazu Yamamoto2009-03-311-0/+17
|
* Add import_function method to test.test_support, and modify a number ofR. David Murray2009-03-301-2/+3
| | | | | | | | tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
* mmap.resize for anonymous map is not working yet, so changed to real file ↵Hirokazu Yamamoto2009-03-051-15/+5
| | | | mapping...
* Issue #5385: Fixed mmap crash after resize failure on windows.Hirokazu Yamamoto2009-03-051-1/+33
| | | | | Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs.
* Issue #1733986: Fixed mmap crash in accessing elements of second map objectHirokazu Yamamoto2009-02-281-0/+28
| | | | with same tagname but larger size than first map. (Windows)
* Issue #5386: mmap.write_byte didn't check map size, so it could cause bufferHirokazu Yamamoto2009-02-281-0/+32
| | | | overrun.
* Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0,Hirokazu Yamamoto2009-02-171-0/+21
| | | | The file was resized to wrong size.
* Issue #5292: Fixed mmap crash on its boundary access m[len(m)].Hirokazu Yamamoto2009-02-171-0/+4
|
* Be sure to close the file. 2 places were deleting the file, so it was probablyNeal Norwitz2008-04-011-1/+3
| | | | | fine, but the last change may be required for the test to pass on Windows. Should we always close the mmap too?
* Issue 2112. mmap does not raises EnvironmentError no more, butFacundo Batista2008-02-171-0/+5
| | | | a subclass of it. Thanks John Lenton.
* mmap.PROT_READ does not exists on win32;Amaury Forgeot d'Arc2008-02-161-0/+2
| | | | Skip this test created by r60830.
* Bug #2111: mmap segfaults when trying to write a block opened with PROT_READChristian Heimes2008-02-151-0/+7
| | | | Thanks to Thomas Herve for the fix.
* Fix for #1087741 patch.Georg Brandl2008-01-221-0/+7
|
* Patch #976880: add mmap .rfind() method, and 'end' paramter to .find().Andrew M. Kuchling2008-01-191-0/+36
| | | | Contributed by John Lenton.
* Add phuang patch from Issue 708374 which adds offset parameter to mmap module.Travis E. Oliphant2007-10-231-0/+44
|
* Improve extended slicing support in builtin types and classes. Specifically:Thomas Wouters2007-08-281-0/+34
| | | | | | | | | | | | | | | | | | | | - Specialcase extended slices that amount to a shallow copy the same way as is done for simple slices, in the tuple, string and unicode case. - Specialcase step-1 extended slices to optimize the common case for all involved types. - For lists, allow extended slice assignment of differing lengths as long as the step is 1. (Previously, 'l[:2:1] = []' failed even though 'l[:2] = []' and 'l[:2:None] = []' do not.) - Implement extended slicing for buffer, array, structseq, mmap and UserString.UserString. - Implement slice-object support (but not non-step-1 slice assignment) for UserString.MutableString. - Add tests for all new functionality.
* Whitespace normalization.Tim Peters2006-11-031-1/+1
|
* Convert test_mmap to unittest.Georg Brandl2006-10-291-238/+156
|
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-051-2/+12
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Fix SF bug #1402308, segfault when using mmap(-1, ...)Neal Norwitz2006-01-111-0/+8
| | | | | | | This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows. Will backport.
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-0/+16
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* Whitespace normalization (via reindent.py).Tim Peters2005-08-261-1/+1
|