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

Method check_cpu_count

Lib/test/test_os.py:4696–4701  ·  view source on GitHub ↗
(self, cpus)

Source from the content-addressed store, hash-verified

4694
4695class CPUCountTests(unittest.TestCase):
4696 def check_cpu_count(self, cpus):
4697 if cpus is None:
4698 self.skipTest("Could not determine the number of CPUs")
4699
4700 self.assertIsInstance(cpus, int)
4701 self.assertGreater(cpus, 0)
4702
4703 def test_cpu_count(self):
4704 cpus = os.cpu_count()

Callers 2

test_cpu_countMethod · 0.95

Calls 3

skipTestMethod · 0.80
assertIsInstanceMethod · 0.80
assertGreaterMethod · 0.80

Tested by

no test coverage detected