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

Method test_cpu_count

Lib/test/test_os/test_os.py:4427–4429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4425 self.assertGreater(cpus, 0)
4426
4427 def test_cpu_count(self):
4428 cpus = os.cpu_count()
4429 self.check_cpu_count(cpus)
4430
4431 def test_process_cpu_count(self):
4432 cpus = os.process_cpu_count()

Callers

nothing calls this directly

Calls 2

check_cpu_countMethod · 0.95
cpu_countMethod · 0.80

Tested by

no test coverage detected