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

Method test_cpu_count

Lib/test/_test_multiprocessing.py:589–595  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

587 self.assertEqual(exitcode, -signal.SIGTERM)
588
589 def test_cpu_count(self):
590 try:
591 cpus = multiprocessing.cpu_count()
592 except NotImplementedError:
593 cpus = 1
594 self.assertTrue(type(cpus) is int)
595 self.assertTrue(cpus >= 1)
596
597 def test_active_children(self):
598 self.assertEqual(type(self.active_children()), list)

Callers

nothing calls this directly

Calls 2

cpu_countMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected