From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 21 Nov 2019 12:11:44 +0000 (-0800) Subject: bpo-38875: test_capi: trashcan tests require cpu resource (GH-17314) X-Git-Tag: v3.8.1rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=767b42633bb7ac39dd6743d8dd7f5b5cc122acea;p=thirdparty%2FPython%2Fcpython.git 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 0127bb1c5c3286f87e284ff6083133bfdcfd5a4f) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 78c51b3cb61e..2761ab3f2095 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -350,9 +350,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 index 000000000000..3f6c86d32262 --- /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.