Skip to content

Commit 63b7ae4

Browse files
committed
Revert test_opcache item size change.
This test gets a bit slower, due to stop-the-world but it is not so dramatic.
1 parent ddfdbd5 commit 63b7ae4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_opcache.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ class TestRacesDoNotCrash(TestBase):
583583
# Careful with these. Bigger numbers have a higher chance of catching bugs,
584584
# but you can also burn through a *ton* of type/dict/function versions:
585585
ITEMS = 1000
586-
SMALL_ITEMS = 100
587586
LOOPS = 4
588587
WRITERS = 2
589588

@@ -627,7 +626,7 @@ class C:
627626
__getitem__ = lambda self, item: None
628627

629628
items = []
630-
for _ in range(self.SMALL_ITEMS):
629+
for _ in range(self.ITEMS):
631630
item = C()
632631
items.append(item)
633632
return items
@@ -798,7 +797,7 @@ class C:
798797
__getattribute__ = lambda self, name: None
799798

800799
items = []
801-
for _ in range(self.SMALL_ITEMS):
800+
for _ in range(self.ITEMS):
802801
item = C()
803802
items.append(item)
804803
return items

0 commit comments

Comments
 (0)