summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-201-2/+6
| | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* 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-76/+74
|
* Issue #4885: Add weakref support to mmap objects. Patch by Valerie Lambert.Antoine Pitrou2013-08-051-1/+11
|
* MergeRichard Oudkerk2013-02-131-0/+7
|\
| * MergeRichard Oudkerk2013-02-131-0/+7
| |\
| | * Issue #16743: Fix mmap overflow check on 32 bit WindowsRichard Oudkerk2013-02-131-0/+7
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-4/+4
| | |
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-1/+1
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Replace mmap.error with OSError, #16705Andrew Svetlov2012-12-171-2/+2
|/ /
* | #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-5/+5
|\ \ | |/ | | | | was incomplete
| * #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-5/+5
| | | | | | | | was incomplete
* | Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+9
|\ \ | |/
| * Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+9
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-2/+1
| |
* | (merge 3.2) Issue #12451: Open files in binary mode in some tests when the textVictor Stinner2011-06-301-3/+3
|\ \ | |/ | | | | | | | | file is not needed. Remove also an unused variable (blank) in test_threading.
| * Issue #12451: Open files in binary mode in some tests when the text file is notVictor Stinner2011-06-301-3/+3
| | | | | | | | | | | | needed. Remove also an unused variable (blank) in test_threading.
* | Issue #12021: Make mmap's read() method argument optional. Patch by PetriCharles-François Natali2011-06-081-0/+29
|/ | | | Lehtinen.
* Merge: Fix potential resource leak in test_mmap.Nadeem Vawda2011-05-071-0/+1
|\
| * Fix potential resource leak in test_mmap.Nadeem Vawda2011-05-071-0/+1
| |
* | Merge: #11277: Fix tests - crash will not trigger if the file is closed and ↵Nadeem Vawda2011-05-071-14/+12
|\ \ | |/ | | | | reopened.
| * Issue #11277: Fix tests - crash will not trigger if the file is closed and ↵Nadeem Vawda2011-05-071-14/+12
| | | | | | | | reopened.
* | Merge: #11277: Add tests for mmap crash when using large sparse files on OS X.Nadeem Vawda2011-05-071-26/+31
|\ \ | |/ | | | | | | | | Also, reduce code duplication in LargeMmapTests. Original patch by Steffen Daode Nurpmeso.
| * 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: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
* | Merge fix for issue #11391Antoine Pitrou2011-03-061-0/+8
|\ \ | |/
| * Fix buildbot failure following 97a5590b9291Antoine Pitrou2011-03-061-3/+3
| |
| * 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 88460,88464,88466,88486,88511,88652 via svnmerge fromAntoine Pitrou2011-02-281-3/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........ r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines Fix issues on 32-bit systems introduced by r88460 ........ r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines Fix compile error under MSVC introduced by r88460. ........ 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. ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........ r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto. ........
| * 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-17/+17
| | | | | | | | | | | | | | | | | | | | 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 86159 via svnmerge fromHirokazu Yamamoto2010-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86159 | hirokazu.yamamoto | 2010-11-04 21:09:08 +0900 | 2 lines Issue #5391: mmap.read_byte() should return unsigned value [0, 255] instead of signed value [-127, 128]. ........
| * 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. ........
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | Merged revisions 88486 via svnmerge fromAntoine Pitrou2011-02-211-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* | Issue #10955: Fix a potential crash when trying to mmap() a file past itsAntoine Pitrou2011-01-201-0/+13
| | | | | | | | | | | | length. Initial patch by Ross Lagerwall. This fixes a regression introduced by r88022.
* | Fix mmap and test_mmap under Windows too (followup to r88022)v3.2rc1Antoine Pitrou2011-01-151-5/+6
| |
* | Issue #10916: mmap should not segfault when a file is mapped using 0 asAntoine Pitrou2011-01-151-0/+13
| | | | | | | | | | | | | | 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.
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-17/+17
| |
* | Issue #5391: mmap.read_byte() should return unsigned value [0, 255]Hirokazu Yamamoto2010-11-041-0/+9
| | | | | | | | instead of signed value [-127, 128].
* | context managerifyBenjamin Peterson2010-10-311-112/+111
| |
* | Fix #8105. Add validation to mmap.mmap so invalid file descriptorsBrian Curtin2010-08-011-1/+12
| | | | | | | | don't cause a crash on Windows.
* | #8046: add context manager protocol support to mmap objects. Also add ↵Georg Brandl2010-08-011-0/+14
| | | | | | | | closed property.
* | use assert[Not]In where appropriateBenjamin Peterson2010-01-191-1/+1
| | | | | | | | A patch from Dave Malcolm.
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-2/+2
|/
* Merged revisions ↵Benjamin Peterson2009-04-111-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70980 | jack.diederich | 2009-04-01 15:26:13 -0500 (Wed, 01 Apr 2009) | 3 lines bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5 ........ r71059 | mark.dickinson | 2009-04-02 13:39:37 -0500 (Thu, 02 Apr 2009) | 2 lines sys.long_info attributes should be ints, not longs ........ r71225 | georg.brandl | 2009-04-05 06:54:07 -0500 (Sun, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 08:16:35 -0500 (Sun, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71241 | georg.brandl | 2009-04-05 09:48:49 -0500 (Sun, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 10:14:29 -0500 (Sun, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 11:30:43 -0500 (Sun, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 12:17:42 -0500 (Sun, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........ r71255 | georg.brandl | 2009-04-05 13:34:58 -0500 (Sun, 05 Apr 2009) | 1 line #602893: add indicator for current line in cgitb that doesnt rely on styling alone. ........ r71266 | georg.brandl | 2009-04-05 15:23:13 -0500 (Sun, 05 Apr 2009) | 1 line Normalize issue referencing style. ........ r71299 | gregory.p.smith | 2009-04-05 18:43:58 -0500 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........ r71329 | benjamin.peterson | 2009-04-06 16:53:33 -0500 (Mon, 06 Apr 2009) | 1 line add create_connection to __all__ #5711 ........ r71397 | georg.brandl | 2009-04-08 11:36:39 -0500 (Wed, 08 Apr 2009) | 1 line Remove redundant backtick. ........ r71398 | georg.brandl | 2009-04-08 11:39:04 -0500 (Wed, 08 Apr 2009) | 1 line Update ignore file for suspicious builder. ........ r71486 | andrew.kuchling | 2009-04-11 11:18:14 -0500 (Sat, 11 Apr 2009) | 1 line Re-word ........