MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_threading

Method test_threading

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

Source from the content-addressed store, hash-verified

201
202
203 def test_threading(self):
204 returncode, events, stderr = self.run_python("test_threading")
205 if returncode:
206 self.fail(stderr)
207
208 if support.verbose:
209 print(*events, sep='\n')
210 actual = [(ev[0], ev[2]) for ev in events]
211 expected = [
212 ("_thread.start_new_thread", "(<test_func>, (), None)"),
213 ("test.test_func", "()"),
214 ("_thread.start_joinable_thread", "(<test_func>, 1, None)"),
215 ("test.test_func", "()"),
216 ]
217
218 self.assertEqual(actual, expected)
219
220
221 def test_wmi_exec_query(self):

Callers

nothing calls this directly

Calls 4

run_pythonMethod · 0.95
printFunction · 0.50
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected