MCPcopy Index your code
hub / github.com/python/cpython / test_threading

Method test_threading

Lib/test/test_audit.py:212–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210
211
212 def test_threading(self):
213 returncode, events, stderr = self.run_python("test_threading")
214 if returncode:
215 self.fail(stderr)
216
217 if support.verbose:
218 print(*events, sep='\n')
219 actual = [(ev[0], ev[2]) for ev in events]
220 expected = [
221 ("_thread.start_new_thread", "(<test_func>, (), None)"),
222 ("test.test_func", "()"),
223 ("_thread.start_joinable_thread", "(<test_func>, 1, None)"),
224 ("test.test_func", "()"),
225 ]
226
227 self.assertEqual(actual, expected)
228
229
230 def test_wmi_exec_query(self):

Callers

nothing calls this directly

Calls 3

run_pythonMethod · 0.95
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected