summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_memoryview.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40275: Use new test.support helper submodules in tests (GH-21169)Hai Shi2020-06-301-1/+3
|
* bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)Antoine Pitrou2018-04-141-0/+11
|
* Issue #22995: Instances of extension types with a state that aren'tSerhiy Storchaka2015-12-251-0/+13
| | | | | | subclasses of list or dict and haven't implemented any pickle-related methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no longer be pickled. Including memoryview.
* Iaaue #25598: Fix memory_hex from #9951 for non-contiguous buffers.Stefan Krah2015-11-101-0/+7
|
* Issue #15944: memoryview: Allow arbitrary formats when casting to bytes.Stefan Krah2015-08-081-0/+21
| | | | Original patch by Martin Panter.
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #22668: Merge from 3.4.Stefan Krah2015-01-291-1/+3
|\
| * Issue #22668: Remove endianness assumption in test.Stefan Krah2015-01-291-3/+5
| |
* | Whitespace.Stefan Krah2015-01-291-2/+2
|/
* Issue #22668: Ensure that format strings survive slicing after casting.Stefan Krah2015-01-291-0/+19
|
* Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-7/+7
|\
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-7/+7
| |
* | Close #19078: memoryview now supports reversedNick Coghlan2013-10-021-0/+9
|/ | | | Patch by Claudiu Popa
* Fix out-of-date comment in test_memoryview.Stefan Krah2012-08-191-1/+2
|
* Issue #14930: Make memoryview objects weakrefable.Richard Oudkerk2012-05-281-0/+15
|
* - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-12/+38
| | | | | | | | | | | | | | | | | | and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.
* Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou2011-11-211-0/+27
| | | | is hashable.
* Issue #10451: memoryview objects could allow to mutate a readable buffer.Antoine Pitrou2011-01-181-0/+12
| | | | Initial patch by Ross Lagerwall.
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-1/+1
| | | | assertRaisesRegex.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-25/+25
|
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-0/+45
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou2010-09-011-0/+9
| | | | a memoryview object.
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-011-1/+1
| | | | | | frombytes() and tobytes(), respectively, to avoid confusion. Furthermore, array.frombytes(), array.extend() as well as the array.array() constructor now accept bytearray objects. Patch by Thomas Jollans.
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-5/+5
|
* Issue 6329: Fix iteration for memoryviews.Raymond Hettinger2009-06-231-0/+6
|
* Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.Antoine Pitrou2009-01-031-133/+207
| | | | | | | | Also fix len() to return number of items rather than length in bytes. I'm sorry it was not possible for me to work on this without reindenting a bit some stuff around. The indentation in memoryobject.c is a mess, I'll open a separate bug for it.
* Issue #4569: Interpreter crash when mutating a memoryview with an item size ↵Antoine Pitrou2008-12-071-0/+9
| | | | | | larger than 1. (together with a bit of reindenting)
* kill memoryview.size in favor of len(view)Benjamin Peterson2008-09-101-1/+1
| | | | Reviewer: Antoine Pitrou #3827
* #3712: The memoryview object had a reference leak and didn't support cyclic ↵Antoine Pitrou2008-09-011-0/+32
| | | | | | garbage collection. Reviewed by Benjamin Peterson.
* Issue #2394: implement more of the memoryview API.Antoine Pitrou2008-08-191-2/+190
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Fixed memoryview constructor. It allowed arbitrary keyword arguments. The ↵Christian Heimes2007-11-081-0/+25
bug was found by mykhal from #python. I've also added a small test case in the new test_memoryview.py