]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314)
authorVictor Stinner <vstinner@python.org>
Thu, 21 Nov 2019 11:54:02 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2019 11:54:02 +0000 (12:54 +0100)
test_capi: trashcan tests now require the test "cpu" resource.

Lib/test/test_capi.py
Misc/NEWS.d/next/Tests/2019-11-21-09-11-06.bpo-38875.wSZJal.rst [new file with mode: 0644]

index 202443510979382a2d8dcc4f98f3838277b59d1e..e65973c4646b16106b628b97c9a3eb5d918fcc5b 100644 (file)
@@ -351,9 +351,11 @@ class CAPITest(unittest.TestCase):
         for i in range(1000):
             L = MyList((L,))
 
+    @support.requires_resource('cpu')
     def test_trashcan_python_class1(self):
         self.do_test_trashcan_python_class(list)
 
+    @support.requires_resource('cpu')
     def test_trashcan_python_class2(self):
         from _testcapi import MyList
         self.do_test_trashcan_python_class(MyList)
diff --git a/Misc/NEWS.d/next/Tests/2019-11-21-09-11-06.bpo-38875.wSZJal.rst b/Misc/NEWS.d/next/Tests/2019-11-21-09-11-06.bpo-38875.wSZJal.rst
new file mode 100644 (file)
index 0000000..3f6c86d
--- /dev/null
@@ -0,0 +1 @@
+test_capi: trashcan tests now require the test "cpu" resource.