Skip to content

Commit 767b426

Browse files
bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314)
test_capi: trashcan tests now require the test "cpu" resource. (cherry picked from commit 0127bb1) Co-authored-by: Victor Stinner <[email protected]>
1 parent 23f9be2 commit 767b426

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
@@ -350,9 +350,11 @@ def test_trashcan_subclass(self):
350350
for i in range(1000):
351351
L = MyList((L,))
352352

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

357+
@support.requires_resource('cpu')
356358
def test_trashcan_python_class2(self):
357359
from _testcapi import MyList
358360
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)