mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-45668: Fix PGO tests without test extensions (GH-29315)
This commit is contained in:
parent
762a4dc936
commit
e73283a20f
13 changed files with 60 additions and 28 deletions
|
@ -1650,8 +1650,8 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase):
|
|||
|
||||
@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())
|
||||
_testcapi = import_helper.import_module('_testcapi')
|
||||
self.assertRaises(BufferError, _testcapi.getbuffer_with_null_view, bytearray())
|
||||
|
||||
def test_iterator_pickling2(self):
|
||||
orig = bytearray(b'abc')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue