Skip to content

Commit 0127bb1

Browse files
authored
bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314)
test_capi: trashcan tests now require the test "cpu" resource.
1 parent 5c534da commit 0127bb1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_capi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,11 @@ def test_trashcan_subclass(self):
351351
for i in range(1000):
352352
L = MyList((L,))
353353

354+
@support.requires_resource('cpu')
354355
def test_trashcan_python_class1(self):
355356
self.do_test_trashcan_python_class(list)
356357

358+
@support.requires_resource('cpu')
357359
def test_trashcan_python_class2(self):
358360
from _testcapi import MyList
359361
self.do_test_trashcan_python_class(MyList)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test_capi: trashcan tests now require the test "cpu" resource.

0 commit comments

Comments
 (0)