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

Function tfunc

Modules/_decimal/tests/deccheck.py:1292–1302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1290 sys.stdout.buffer.flush()
1291
1292 def tfunc():
1293 while not error.is_set():
1294 try:
1295 test = q.get(block=False, timeout=-1)
1296 except Empty:
1297 return
1298
1299 cmd = [sys.executable, "deccheck.py", "--%s" % args.time, "--single", test]
1300 p = subprocess.Popen(cmd, stdout=PIPE, stderr=STDOUT)
1301 out, _ = p.communicate()
1302 write_output(out, p.returncode)
1303
1304 N = os.process_cpu_count()
1305 t = N * [None]

Callers

nothing calls this directly

Calls 4

communicateMethod · 0.95
write_outputFunction · 0.70
is_setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…