Skip to content

Commit 64ca5a0

Browse files
committed
Update _send_value docstring to explain pickling requirement
Clarify that _send_value is a static method specifically to be picklable as a Process target function.
1 parent 42e8eb1 commit 64ca5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_multiprocessing_forkserver/test_preload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def tearDown(self):
3030

3131
@staticmethod
3232
def _send_value(conn, value):
33-
"""Helper to send a value through a connection."""
33+
"""Send value through connection. Static method to be picklable as Process target."""
3434
conn.send(value)
3535

3636
def test_preload_on_error_ignore_default(self):

0 commit comments

Comments
 (0)