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

Method test_subclassing

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

Source from the content-addressed store, hash-verified

1087
1088 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
1089 def test_subclassing(self):
1090 uppercaser = _UpperCaser()
1091 uppercaser.daemon = True
1092 uppercaser.start()
1093 self.assertEqual(uppercaser.submit('hello'), 'HELLO')
1094 self.assertEqual(uppercaser.submit('world'), 'WORLD')
1095 uppercaser.stop()
1096 uppercaser.join()
1097
1098 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
1099 def test_stderr_flush(self):

Callers

nothing calls this directly

Calls 6

_UpperCaserClass · 0.85
startMethod · 0.45
assertEqualMethod · 0.45
submitMethod · 0.45
stopMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected