Skip to content

Commit 55bb584

Browse files
authored
Merge pull request RustPython#4745 from ilp-sys/test_array_update
Update test_array.py from Cpython v3.11.2
2 parents 5cce71d + 7188e04 commit 55bb584

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_array.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import collections.abc
66
import unittest
77
from test import support
8+
from test.support import import_helper
89
from test.support import os_helper
910
from test.support import _2G
1011
import weakref
@@ -1151,9 +1152,9 @@ def test_initialize_with_unicode(self):
11511152

11521153
@support.cpython_only
11531154
def test_obsolete_write_lock(self):
1154-
from _testcapi import getbuffer_with_null_view
1155+
_testcapi = import_helper.import_module('_testcapi')
11551156
a = array.array('B', b"")
1156-
self.assertRaises(BufferError, getbuffer_with_null_view, a)
1157+
self.assertRaises(BufferError, _testcapi.getbuffer_with_null_view, a)
11571158

11581159
# TODO: RUSTPYTHON
11591160
@unittest.expectedFailure

0 commit comments

Comments
 (0)