Whole file
jd/tenacity
The author described this change as “Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)”. It counts as a record because the check below fails on the code as it stood at c86e061ea and passes on ff817d98f, with nothing else changed between the two runs.
Projectjd/tenacity
Fix saved2014-05-05
Sharing licenceApache-2.0 · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)
The change
| 151 | 151 | self.wait = lambda attempts, delay: max(f(attempts, delay) for f in wait_funcs) | |
| 152 | 152 | ||
| 153 | 153 | else: | |
| 154 | - | self.wait = self.getattr(wait) | |
| 154 | + | self.wait = getattr(self, wait) | |
| 155 | 155 | ||
| 156 | 156 | # retry on exception filter | |
| 157 | 157 | if retry_on_exception is None: |
The check that tells the two apart
fail→pass·test_retrying.py::TestWaitConditions::test_legacy_explicit_wait_type
Check file test_retrying.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 itc86e061eaa65b960ce6c56439a05d9f1c9d55717
Broken version dated2014-05-05
Moduleretrying
Units changedRetrying
Fingerprintdaa0b6f0a247c7e3
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.