pushy.client.AutoImporter can outlive Client
Bug #733647 reported by
Andrew Wilkins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pushy |
Fix Released
|
Low
|
Unassigned |
Bug Description
AutoImporter objects do not hold reference to their owning Client, and so may outlive them. This is evident when you try to do something like:
pushy.
Currently you will get an AttributeError, because the client will have been dereferenced and closed before the getattr on the modules object completes.
Related branches
Changed in pushy: | |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
Changed in pushy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a simple matter of adding the parent Client to the child object, to preserve its lifetime.