[Python-checkins] bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314)

Victor Stinner webhook-mailer at python.org
Thu Nov 21 06:54:07 EST 2019


https://github.com/python/cpython/commit/0127bb1c5c3286f87e284ff6083133bfdcfd5a4f
commit: 0127bb1c5c3286f87e284ff6083133bfdcfd5a4f
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2019-11-21T12:54:02+01:00
summary:

bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314)

test_capi: trashcan tests now require the test "cpu" resource.

files:
A Misc/NEWS.d/next/Tests/2019-11-21-09-11-06.bpo-38875.wSZJal.rst
M Lib/test/test_capi.py

diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 2024435109793..e65973c4646b1 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -351,9 +351,11 @@ def test_trashcan_subclass(self):
         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
index 0000000000000..3f6c86d32262c
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-11-21-09-11-06.bpo-38875.wSZJal.rst
@@ -0,0 +1 @@
+test_capi: trashcan tests now require the test "cpu" resource.



More information about the Python-checkins mailing list