Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1151,9 +1152,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)

# TODO: RUSTPYTHON
@unittest.expectedFailure
Expand Down