Whole file
celery/billiard
The author described this change as “fix cpython issue 14881 (#224)”. It counts as a record because the check below fails on the code as it stood at da3e54e4b and passes on 7a2c31cdf, with nothing else changed between the two runs.
Projectcelery/billiard
Fix saved2017-05-20
Sharing licenceBSD-3-Clause · LICENSE.txt
Change size+2 −1
What the code was meant to do, written into the code itself as a save note
fix cpython issue 14881 (#224)
The change
| 68 | 68 | def start(self): | |
| 69 | 69 | assert self._parent is current_process() | |
| 70 | 70 | self._start_called = True | |
| 71 | - | self._parent._children[self] = None | |
| 71 | + | if hasattr(self._parent, '_children'): | |
| 72 | + | self._parent._children[self] = None | |
| 72 | 73 | threading.Thread.start(self) | |
| 73 | 74 | ||
| 74 | 75 | @property |
The check that tells the two apart
fail→pass·t/unit/test_dummy.py::test_restart_state::test_raises
Check file t/unit/test_dummy.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itda3e54e4b5bee32569c5128c041637174d5808e5
Broken version dated2017-04-18
Modulebilliard.dummy.__init__
Units changedDummyProcess
Fingerprintfe6612144ff989c5
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.