summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)Christian Heimes2022-03-221-1/+9
| | | | | | | | | | | - Add requires_fork and requires_subprocess to more tests - Skip extension import tests if dlopen is not available - Don't assume that _testcapi is a shared extension - Skip a lot of socket tests that don't work on Emscripten - Skip mmap tests, mmap emulation is incomplete - venv does not work yet - Cannot get libc from executable The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
* bpo-45621: Small changes to mmap (GH-29247)Tim Golden2021-10-291-8/+16
| | | | * Small tidy-ups / comments * Use randomized names when testing tagged mmaps to avoid any risk of parallel tests treading on each others' toes
* bpo-40915: Fix mmap resize bugs on Windows (GH-29213)Tim Golden2021-10-261-1/+75
| | | | | | | | | | | (original patch by eryksun) Correctly hand various failure modes when resizing an mmap on Windows: * Resizing a pagefile-backed mmap now creates a new mmap and copies data * Attempting to resize when another mapping is held on the same file raises an OSError * Attempting to resize a nametagged mmap raises an OSError if another mapping is held with the same nametag
* bpo-40275: Use new test.support helper submodules in tests (GH-21449)Hai Shi2020-08-031-2/+3
|
* bpo-34953: Implement `mmap.mmap.__repr__` (GH-9891)Taine Zhao2019-10-171-0/+36
|
* bpo-32941: Fix test_madvise failure when page size >= 8kiB (GH-13596)Antoine Pitrou2019-05-271-1/+2
| | | https://bugs.python.org/issue32941
* bpo-32941: Add madvise() for mmap objects (GH-6172)Zackery Spytz2019-05-271-0/+19
| | | | Allow mmap objects to access the madvise() system call.
* bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375)Zackery Spytz2019-05-171-2/+2
| | | | | | | The final addition (cur += step) may overflow, so use size_t for "cur". "cur" is always positive (even for negative steps), so it is safe to use size_t here. Co-Authored-By: Martin Panter <vadmium+py@gmail.com>
* bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928)Serhiy Storchaka2019-03-051-48/+36
|
* Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)Anthony Sottile2019-02-251-3/+0
|
* bpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451)Berker Peksag2018-09-201-2/+3
| | | | Apparently, FreeBSD doesn't raise OSError when offset is not a multiple of mmap.PAGESIZE.
* bpo-2122: Make mmap.flush() behave same on all platforms (GH-8692)Berker Peksag2018-08-221-5/+14
| | | | | Previously, its behavior was platform-dependent and there was no error checking under Windows.
* bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)Zackery Spytz2018-06-051-0/+7
| | | | Raise TypeError instead of SystemError for unsupported operations.
* Replace KB unit with KiB (#4293)Victor Stinner2017-11-081-1/+1
| | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB.
* merge 3.5Benjamin Peterson2016-10-061-0/+14
|\
| * 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-1/+4
| |
| * mmap: do all internal arithmetic with Py_ssize_t while being very careful ↵Benjamin Peterson2016-10-061-0/+11
| | | | | | | | about overflow
* | Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).Serhiy Storchaka2016-05-231-1/+1
|\ \ | |/ | | | | Patch by Xavier de Gaye.
| * Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).Serhiy Storchaka2016-05-231-1/+1
| | | | | | | | Patch by Xavier de Gaye.
* | Issue #26335: Make mmap.write() return the number of bytes written likeBerker Peksag2016-03-021-0/+8
|/ | | | | | other write methods. Patch by Jakub Stasiak.
* Issue #25004: Merge 3.4 into 3.5Martin Panter2015-09-071-1/+4
|\
| * Issue #25004: Handle out-of-disk-space error in LargeMmapTestsMartin Panter2015-09-071-1/+4
| | | | | | | | Patch from John Beck.
* | 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
|\ \ | |/