Skip to content

Commit 437f14f

Browse files
committed
fix: fix wasi test failed
1 parent 4310b88 commit 437f14f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_defaultdict.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import unittest
88

99
from collections import defaultdict
10+
from test.support import threading_helper
1011

1112
def foobar():
1213
return list
@@ -188,6 +189,7 @@ def test_union(self):
188189
with self.assertRaises(TypeError):
189190
i |= None
190191

192+
@threading_helper.requires_working_threading()
191193
def test_no_value_overwrite_race_condition(self):
192194
"""Test that concurrent access to missing keys doesn't overwrite values."""
193195
# Use a factory that returns unique objects so we can detect overwrites

0 commit comments

Comments
 (0)