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

Method test_process_cpu_count

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

Source from the content-addressed store, hash-verified

4705 self.check_cpu_count(cpus)
4706
4707 def test_process_cpu_count(self):
4708 cpus = os.process_cpu_count()
4709 self.assertLessEqual(cpus, os.cpu_count())
4710 self.check_cpu_count(cpus)
4711
4712 @unittest.skipUnless(hasattr(os, 'sched_setaffinity'),
4713 "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