Skip to content

Commit cddd99d

Browse files
committed
Mark testthreadingmock.py with threading_helper.requires_working_threading
The test uses threading and it should declare that it uses it to prevent failures on archs where creating threads don't work.
1 parent 5890621 commit cddd99d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_unittest/testmock/testthreadingmock.py

+4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
import unittest
33
import concurrent.futures
44

5+
from test.support import threading_helper
56
from unittest.mock import patch, ThreadingMock, call
67

78

9+
threading_helper.requires_working_threading(module=True)
10+
11+
812
class Something:
913
def method_1(self):
1014
pass

0 commit comments

Comments
 (0)