summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_opcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_opcache.py')
-rw-r--r--Lib/test/test_opcache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py
index 21d7e62..4034933 100644
--- a/Lib/test/test_opcache.py
+++ b/Lib/test/test_opcache.py
@@ -576,6 +576,7 @@ class TestRacesDoNotCrash(TestBase):
# Careful with these. Bigger numbers have a higher chance of catching bugs,
# but you can also burn through a *ton* of type/dict/function versions:
ITEMS = 1000
+ SMALL_ITEMS = 100
LOOPS = 4
WRITERS = 2
@@ -619,7 +620,7 @@ class TestRacesDoNotCrash(TestBase):
__getitem__ = lambda self, item: None
items = []
- for _ in range(self.ITEMS):
+ for _ in range(self.SMALL_ITEMS):
item = C()
items.append(item)
return items
@@ -790,7 +791,7 @@ class TestRacesDoNotCrash(TestBase):
__getattribute__ = lambda self, name: None
items = []
- for _ in range(self.ITEMS):
+ for _ in range(self.SMALL_ITEMS):
item = C()
items.append(item)
return items