summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_buffer.py')
-rw-r--r--Lib/test/test_buffer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_buffer.py b/Lib/test/test_buffer.py
index b679d2e..72a06d6 100644
--- a/Lib/test/test_buffer.py
+++ b/Lib/test/test_buffer.py
@@ -1029,6 +1029,7 @@ class TestBufferProtocol(unittest.TestCase):
ndim=ndim, shape=shape, strides=strides,
lst=lst, sliced=sliced)
+ @support.requires_resource('cpu')
def test_ndarray_getbuf(self):
requests = (
# distinct flags
@@ -2760,6 +2761,7 @@ class TestBufferProtocol(unittest.TestCase):
m = memoryview(ex)
iter_roundtrip(ex, m, items, fmt)
+ @support.requires_resource('cpu')
def test_memoryview_cast_1D_ND(self):
# Cast between C-contiguous buffers. At least one buffer must
# be 1D, at least one format must be 'c', 'b' or 'B'.