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

Method test_daemon_argument

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

Source from the content-addressed store, hash-verified

366 q.put(arg)
367
368 def test_daemon_argument(self):
369 if self.TYPE == "threads":
370 self.skipTest('test not appropriate for {}'.format(self.TYPE))
371
372 # By default uses the current process's daemon flag.
373 proc0 = self.Process(target=self._test)
374 self.assertEqual(proc0.daemon, self.current_process().daemon)
375 proc1 = self.Process(target=self._test, daemon=True)
376 self.assertTrue(proc1.daemon)
377 proc2 = self.Process(target=self._test, daemon=False)
378 self.assertFalse(proc2.daemon)
379
380 @classmethod
381 def _test(cls, q, *args, **kwds):

Callers

nothing calls this directly

Calls 6

skipTestMethod · 0.80
assertTrueMethod · 0.80
assertFalseMethod · 0.80
formatMethod · 0.45
ProcessMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected