mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merged revisions 88550 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with a buffer struct having a NULL data pointer. ........
This commit is contained in:
parent
ec8f0df229
commit
915605c59a
4 changed files with 21 additions and 0 deletions
|
@ -50,6 +50,8 @@ class CAPITest(unittest.TestCase):
|
|||
b'Fatal Python error:'
|
||||
b' PyThreadState_Get: no current thread')
|
||||
|
||||
def test_memoryview_from_NULL_pointer(self):
|
||||
self.assertRaises(ValueError, _testcapi.make_memoryview_from_NULL_pointer)
|
||||
|
||||
@unittest.skipUnless(threading, 'Threading required for this test.')
|
||||
class TestPendingCalls(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue