After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654683 - getallstates does not work with pyatspi2
getallstates does not work with pyatspi2
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp2
2.0.0
Other Linux
: Normal normal
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2011-07-15 14:52 UTC by Michael Terry
Modified: 2011-07-16 00:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use str (659 bytes, patch)
2011-07-15 14:53 UTC, Michael Terry
none Details | Review

Description Michael Terry 2011-07-15 14:52:12 UTC
pyatspi2 changed how the keys in STATE_VALUE_TO_NAME are defined, which breaks ldtp.getallstates().  Try that function on any widget and you'll just get blank strings back.

Instead of using __repr__(), str() should be used.  Patch attached.
Comment 1 Michael Terry 2011-07-15 14:53:06 UTC
Created attachment 192032 [details] [review]
Use str
Comment 2 Nagappan Alagappan 2011-07-16 00:24:45 UTC
Have pushed the fix to git head, thanks for the bug report and the patch.