summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2015-02-03 20:43:23 (GMT)
committerStefan Krah <skrah@bytereef.org>2015-02-03 20:43:23 (GMT)
commit650c1e818d7bbb5d51501051fca773b3b8ea6bf3 (patch)
tree5fdc035e52a060552f90293c04f8df9537e86def /Lib/test/test_bytes.py
parent38c30e6c8e34241a1ea226fdd4ff74be6a8ee846 (diff)
downloadcpython-650c1e818d7bbb5d51501051fca773b3b8ea6bf3.zip
cpython-650c1e818d7bbb5d51501051fca773b3b8ea6bf3.tar.gz
cpython-650c1e818d7bbb5d51501051fca773b3b8ea6bf3.tar.bz2
Issue #14203: Remove obsolete support for view==NULL in bytesiobuf_getbuffer()
and array_buffer_getbuf().
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index a66a982..a9f64a0 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -1224,6 +1224,10 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase):
self.assertRaises(BufferError, delslice)
self.assertEqual(b, orig)
+ @test.support.cpython_only
+ def test_obsolete_write_lock(self):
+ from _testcapi import getbuffer_with_null_view
+ self.assertRaises(BufferError, getbuffer_with_null_view, bytearray())
class AssortedBytesTest(unittest.TestCase):
#