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

Method test_process_cpu_count

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

Source from the content-addressed store, hash-verified

4429 self.check_cpu_count(cpus)
4430
4431 def test_process_cpu_count(self):
4432 cpus = os.process_cpu_count()
4433 self.assertLessEqual(cpus, os.cpu_count())
4434 self.check_cpu_count(cpus)
4435
4436 @unittest.skipUnless(hasattr(os, 'sched_setaffinity'),
4437 "don't have sched affinity support")

Callers

nothing calls this directly

Calls 3

check_cpu_countMethod · 0.95
assertLessEqualMethod · 0.80
cpu_countMethod · 0.80

Tested by

no test coverage detected