From b93199f007f7a2dbaac2fa58b53da0b62bcd6420 Mon Sep 17 00:00:00 2001 From: NakanoMiku Date: Thu, 30 Nov 2023 20:11:24 +0800 Subject: [PATCH] Update test_context.py from CPython v3.12.0 --- Lib/test/test_context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_context.py b/Lib/test/test_context.py index 5d62fa040..01b339932 100644 --- a/Lib/test/test_context.py +++ b/Lib/test/test_context.py @@ -6,6 +6,7 @@ import random import time import unittest import weakref +from test import support from test.support import threading_helper try: @@ -608,6 +609,7 @@ class HamtTest(unittest.TestCase): self.assertEqual({k.name for k in h.keys()}, {'C', 'D', 'E'}) + @support.requires_resource('cpu') def test_hamt_stress(self): COLLECTION_SIZE = 7000 TEST_ITERS_EVERY = 647