mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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
|
|
@ -5,6 +5,7 @@
|
|||
import collections.abc
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
from test.support import os_helper
|
||||
from test.support import _2G
|
||||
import weakref
|
||||
|
|
@ -1147,9 +1148,9 @@ def test_initialize_with_unicode(self):
|
|||
|
||||
@support.cpython_only
|
||||
def test_obsolete_write_lock(self):
|
||||
from _testcapi import getbuffer_with_null_view
|
||||
_testcapi = import_helper.import_module('_testcapi')
|
||||
a = array.array('B', b"")
|
||||
self.assertRaises(BufferError, getbuffer_with_null_view, a)
|
||||
self.assertRaises(BufferError, _testcapi.getbuffer_with_null_view, a)
|
||||
|
||||
def test_free_after_iterating(self):
|
||||
support.check_free_after_iterating(self, iter, array.array,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue