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.

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

337337 try:
338338 return func(*args, **keywargs)
339339 finally:
340- for patching in getattr(patched, 'patchings', []):
340+ for patching in reversed(getattr(patched, 'patchings', [])):
341341 patching.__exit__()
342342
343343 patched.patchings = [self]

The check that tells the two apart

failpass·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