We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cce71d + 7188e04 commit 55bb584Copy full SHA for 55bb584
Lib/test/test_array.py
@@ -5,6 +5,7 @@
5
import collections.abc
6
import unittest
7
from test import support
8
+from test.support import import_helper
9
from test.support import os_helper
10
from test.support import _2G
11
import weakref
@@ -1151,9 +1152,9 @@ def test_initialize_with_unicode(self):
1151
1152
1153
@support.cpython_only
1154
def test_obsolete_write_lock(self):
- from _testcapi import getbuffer_with_null_view
1155
+ _testcapi = import_helper.import_module('_testcapi')
1156
a = array.array('B', b"")
- self.assertRaises(BufferError, getbuffer_with_null_view, a)
1157
+ self.assertRaises(BufferError, _testcapi.getbuffer_with_null_view, a)
1158
1159
# TODO: RUSTPYTHON
1160
@unittest.expectedFailure
0 commit comments