We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2348c commit e7dcc57Copy full SHA for e7dcc57
Lib/test/test_unittest/testmock/testthreadingmock.py
@@ -3,7 +3,7 @@
3
import threading
4
import concurrent.futures
5
6
-from test.support import threading_helper
+from test.support import requires_resource, threading_helper
7
from unittest.mock import patch, ThreadingMock
8
9
@@ -197,6 +197,7 @@ def test_reset_mock_resets_wait(self):
197
m.wait_until_any_call_with()
198
m.assert_called_once()
199
200
+ @requires_resource('cpu')
201
def test_call_count_thread_safe(self):
202
m = ThreadingMock()
203
# 3k loops reliably reproduces the issue while keeping runtime ~0.6s
0 commit comments