Skip to content

Commit 60ace74

Browse files
committed
gh-155332: Use self.Value instead of bare Value in two threads-only pool tests
1 parent af930c1 commit 60ace74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/_test_multiprocessing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3165,7 +3165,7 @@ def test_imap_and_imap_unordered_when_buffer_is_full(self, method_name):
31653165

31663166
processes = 4
31673167
p = self.Pool(processes)
3168-
last_produced_task_arg = Value("i")
3168+
last_produced_task_arg = self.Value("i", 0)
31693169

31703170
def produce_args():
31713171
for arg in itertools.count(1):
@@ -3202,7 +3202,7 @@ def test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full(
32023202

32033203
processes = 4
32043204
p = self.Pool(processes)
3205-
last_produced_task_arg = Value("i")
3205+
last_produced_task_arg = self.Value("i", 0)
32063206

32073207
def produce_args():
32083208
for arg in itertools.count(1):

0 commit comments

Comments
 (0)