summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-76/+74
|
* MergeRichard Oudkerk2013-02-131-0/+7
|\
| * 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-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 ........
* #5391 make mmap work exclusively with bytesBenjamin Peterson2009-04-041-26/+20
|
* Merged revisions 70734,70775,70856,70874,70876-70877 via svnmergeR. David Murray2009-03-311-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ........ r70734 | r.david.murray | 2009-03-30 15:04:00 -0400 (Mon, 30 Mar 2009) | 7 lines Add import_function method to test.test_support, and modify a number of 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. ........ r70775 | r.david.murray | 2009-03-30 19:05:48 -0400 (Mon, 30 Mar 2009) | 4 lines Change more tests to use import_module for the modules that should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring. ........ r70856 | r.david.murray | 2009-03-31 14:32:17 -0400 (Tue, 31 Mar 2009) | 7 lines A few more test skips via import_module, and change import_module to return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments. ........ r70874 | r.david.murray | 2009-03-31 15:33:15 -0400 (Tue, 31 Mar 2009) | 5 lines Improve test_support.import_module docstring, remove deprecated flag from get_attribute since it isn't likely to do anything useful. ........ r70876 | r.david.murray | 2009-03-31 15:49:15 -0400 (Tue, 31 Mar 2009) | 4 lines Remove the regrtest check that turns any ImportError into a skipped test. Hopefully all modules whose imports legitimately result in a skipped test have been properly wrapped by the previous commits. ........ r70877 | r.david.murray | 2009-03-31 15:57:24 -0400 (Tue, 31 Mar 2009) | 2 lines Add NEWS entry for regrtest change. ........
* Merged revisions 70879 via svnmerge fromHirokazu Yamamoto2009-03-311-4/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70879 | hirokazu.yamamoto | 2009-04-01 05:14:04 +0900 | 1 line Issue #5387: Fixed mmap.move crash by integer overflow. (take2) ........
* Merged revisions 70800 via svnmerge fromHirokazu Yamamoto2009-03-311-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70800 | hirokazu.yamamoto | 2009-03-31 22:13:05 +0900 | 1 line Issue #5387: Fixed mmap.move crash by integer overflow. ........
* Merged revisions 70193 via svnmerge fromHirokazu Yamamoto2009-03-051-15/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70193 | hirokazu.yamamoto | 2009-03-05 23:52:44 +0900 | 1 line mmap.resize for anonymous map is not working yet, so changed to real file mapping... ........
* Merged revisions 70189 via svnmerge fromHirokazu Yamamoto2009-03-051-1/+33
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70189 | hirokazu.yamamoto | 2009-03-05 23:21:12 +0900 | 4 lines Issue #5385: Fixed mmap crash after resize failure on windows. Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs. ........
* Merged revisions 70056 via svnmerge fromHirokazu Yamamoto2009-02-281-0/+28
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70056 | hirokazu.yamamoto | 2009-02-28 21:13:07 +0900 | 2 lines Issue #1733986: Fixed mmap crash in accessing elements of second map object with same tagname but larger size than first map. (Windows) ........
* Merged revisions 70052 via svnmerge fromHirokazu Yamamoto2009-02-281-0/+38
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70052 | hirokazu.yamamoto | 2009-02-28 19:31:54 +0900 | 2 lines Issue #5386: mmap.write_byte didn't check map size, so it could cause buffer overrun. ........