Can't access the properties of a custom emulator
Bug #1191164 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Undecided
|
Christopher Lee | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have created a custom emulator that inherits from CustomEmulatorBase, and I'm using it while launching the application.
When I try to access a property from one of the classes that inherit from that emulator, I get
AttributeError: 'NoneType' object has no attribute 'introspection_
This is because the class used as an introspection object has no _Backend.
We should copy the _Backend from the default introspection object, or create a new one for this custom one. I'm not sure how to do this.
Related branches
lp:~veebers/autopilot/custom_emulator_lp-1191164
- PS Jenkins bot: Approve (continuous-integration)
- Thomi Richards (community): Approve
- Leo Arias (community): Approve (code review)
-
Diff: 41 lines (+16/-0)2 files modifiedautopilot/introspection/dbus.py (+2/-0)
autopilot/tests/functional/test_introspection_features.py (+14/-0)
Changed in autopilot: | |
assignee: | nobody → Christopher Lee (veebers) |
Changed in autopilot: | |
milestone: | none → 1.4 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've linked a branch with the test that throws this error.