Whole file
testing-cabal/mock
The author described this change as “double patch bug fixed”. It counts as a record because the check below fails on the code as it stood at d7ce629aa and passes on 0ff5fdea8, with nothing else changed between the two runs.
Projecttesting-cabal/mock
Fix saved2010-06-13
Sharing licenceBSD-2-Clause · LICENSE.txt
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
double patch bug fixed
The change
| 337 | 337 | try: | |
| 338 | 338 | return func(*args, **keywargs) | |
| 339 | 339 | finally: | |
| 340 | - | for patching in getattr(patched, 'patchings', []): | |
| 340 | + | for patching in reversed(getattr(patched, 'patchings', [])): | |
| 341 | 341 | patching.__exit__() | |
| 342 | 342 | ||
| 343 | 343 | patched.patchings = [self] |
The check that tells the two apart
fail→pass·tests/testpatch.py::PatchTest::testPatchObjectTwice
Check file tests/testpatch.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 itd7ce629aa815f0175bd3c7fd6a5fbb765f589deb
Broken version dated2010-06-12
Modulemock
Units changed_patch
Fingerprint5b97841cf9778a4e
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in testing-cabal/mock
- 2023-04-16_get_signature_object
- 2022-12-28create_autospec
- 2020-01-29_patch_dict
- 2020-01-29_patch_object
- 2012-01-22_Call
- 2011-07-19Fix callargs call comparisons