mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-126341: add release check to __iter__
method of memoryview
(#126759)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
ba088c8f9c
commit
a12690ef49
3 changed files with 4 additions and 0 deletions
|
@ -3910,6 +3910,8 @@ class TestBufferProtocol(unittest.TestCase):
|
|||
self.assertRaises(ValueError, memoryview, m)
|
||||
# memoryview.cast()
|
||||
self.assertRaises(ValueError, m.cast, 'c')
|
||||
# memoryview.__iter__()
|
||||
self.assertRaises(ValueError, m.__iter__)
|
||||
# getbuffer()
|
||||
self.assertRaises(ValueError, ndarray, m)
|
||||
# memoryview.tolist()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue