Skip to content

Commit bb2292f

Browse files
committed
TEST: Require working threading for test_module_load_race
1 parent 6accf0c commit bb2292f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_importlib/test_lazy.py

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

10+
from test.support import threading_helper
1011
from test.test_importlib import util as test_util
1112

1213

@@ -146,6 +147,7 @@ def test_module_already_in_sys(self):
146147
# Force the load; just care that no exception is raised.
147148
module.__name__
148149

150+
@threading_helper.requires_working_threading()
149151
def test_module_load_race(self):
150152
with test_util.uncache(TestingImporter.module_name):
151153
loader = TestingImporter()

0 commit comments

Comments
 (0)