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

Method test_value

Lib/test/_test_multiprocessing.py:2533–2550  ·  view source on GitHub ↗
(self, raw=False)

Source from the content-addressed store, hash-verified

2531
2532 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
2533 def test_value(self, raw=False):
2534 if raw:
2535 values = [self.RawValue(code, value)
2536 for code, value, _ in self.codes_values]
2537 else:
2538 values = [self.Value(code, value)
2539 for code, value, _ in self.codes_values]
2540
2541 for sv, cv in zip(values, self.codes_values):
2542 self.assertEqual(sv.value, cv[1])
2543
2544 proc = self.Process(target=self._test, args=(values,))
2545 proc.daemon = True
2546 proc.start()
2547 proc.join()
2548
2549 for sv, cv in zip(values, self.codes_values):
2550 self.assertEqual(sv.value, cv[2])
2551
2552 def test_rawvalue(self):
2553 self.test_value(raw=True)

Callers 1

test_rawvalueMethod · 0.95

Calls 6

RawValueMethod · 0.80
ValueMethod · 0.80
assertEqualMethod · 0.45
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected