#28358: LazyObject defines attribute that don't exist on wrapped object
-------------------------------------+-------------------------------------
Reporter: Andrey Fedoseev | Owner: Theofilos
| Alexiou
Type: Bug | Status: closed
Component: Utilities | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Collin Anderson):
* cc: Collin Anderson (added)
Comment:
the `object.__getattribute__(self, name)` workaround mentioned above fixed
the issue for me running pure-python coverage.
I made a basic PR but don't plan on pushing it through to the end. I'll
opt for actually installing coverage rather than running it straight from
a git checkout but at least wanted to report that the workaround does
work.
https://github.com/django/django/pull/16541
For testing, somehow running a pure-python version of coverage as part of
continuous integration would show the issue, though ideally you want to
test both with and without c-speedups.
--
Ticket URL: <https://code.djangoproject.com/ticket/28358#comment:22>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701863e7209cd-02e54cd3-8d87-437c-8ccc-d9899a225102-000000%40eu-central-1.amazonses.com.