summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-21 19:46:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-21 19:46:33 (GMT)
commitce4a9da70535b4bb9048147b141f01004af2133d (patch)
tree853fa7484683a9c858f29bfab1320fb4baee5d98 /Lib/test/test_sys.py
parent0a3229de6b80cfa9e432ef5a9c72548569503075 (diff)
downloadcpython-ce4a9da70535b4bb9048147b141f01004af2133d.zip
cpython-ce4a9da70535b4bb9048147b141f01004af2133d.tar.gz
cpython-ce4a9da70535b4bb9048147b141f01004af2133d.tar.bz2
Issue #13411: memoryview objects are now hashable when the underlying object is hashable.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index c99f4d7..ba0b592 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -770,8 +770,8 @@ class SizeofTest(unittest.TestCase):
check(int(PyLong_BASE), size(vh) + 2*self.longdigit)
check(int(PyLong_BASE**2-1), size(vh) + 2*self.longdigit)
check(int(PyLong_BASE**2), size(vh) + 3*self.longdigit)
- # memory
- check(memoryview(b''), size(h + 'PP2P2i7P'))
+ # memory (Py_buffer + hash value)
+ check(memoryview(b''), size(h + 'PP2P2i7P' + 'P'))
# module
check(unittest, size(h + '3P'))
# None