Tests fail with GTK+ 3.5

Bug #1014772 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Stable-4-0
Fix Released
Undecided
dobey
Trunk
Fix Released
Undecided
dobey
ubuntu-sso-client (Ubuntu)
Fix Released
Undecided
dobey
Quantal
Fix Released
Undecided
dobey

Bug Description

Several of the gtk tests are failing with the following error on Quantal now, with GTK+ 3.5:

Traceback (most recent call last):
  File "/tmp/buildd/ubuntu-sso-client-3.99.0/ubuntu_sso/gtk/tests/test_gui.py", line 882, in test_on_captcha_generation_error
    gui.CAPTCHA_LOAD_ERROR)
  File "/tmp/buildd/ubuntu-sso-client-3.99.0/ubuntu_sso/gtk/tests/test_gui.py", line 451, in assert_correct_label_warning
    self.assert_color_equal(expected, actual)
  File "/tmp/buildd/ubuntu-sso-client-3.99.0/ubuntu_sso/gtk/tests/test_gui.py", line 182, in assert_color_equal
    self.assertEqual(rgba_color, tmp, msg % (rgba_color, tmp))
  File "/usr/lib/python2.7/dist-packages/twisted/trial/unittest.py", line 270, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: Text color must be <Gdk.Color(red=1.000000, green=0.000000, blue=0.000000, alpha=1.000000)> (got <Gdk.Color(red=0.000000, green=0.000000, blue=0.000000, alpha=1.000000)> instead).
not equal:
a = <Gdk.Color(red=1.000000, green=0.000000, blue=0.000000, alpha=1.000000)>
b = <Gdk.Color(red=0.000000, green=0.000000, blue=0.000000, alpha=1.000000)>

This is due to a performance improvement change in GTK+ where the style update doesn't occur until the widget is actually drawn, and so the color we get from the style doesn't match the one we set.

Related branches

dobey (dobey)
Changed in ubuntu-sso-client (Ubuntu Quantal):
status: New → Triaged
assignee: nobody → Rodney Dawes (dobey)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-sso-client - 3.99.1-0ubuntu1

---------------
ubuntu-sso-client (3.99.1-0ubuntu1) quantal-proposed; urgency=low

  * New upstream release.
    - Handle type annotation when printed from gsettings. (LP: #1007109)
    - Remove back buttons in sign in/up pages. (LP: #1009107)
    - Disable tests broken by GTK+ 3.5 behavior change. (LP: #1014772)
    - Remove code duplication with dirspec. (LP: #1016151)
    - Stop using deprecated dict iteritems/itervalues calls. (LP: #1016707)
    - Stop using deprecated exception handling method. (LP: #1016711)
  * debian/control:
    - Update dependencies.
  * debian/*.install:
    - Remove modules that duplicated code with dirspec.
  * debian/patches:
    - Remove upstreamed patches.
 -- Rodney Dawes <email address hidden> Wed, 27 Jun 2012 15:10:41 -0400

Changed in ubuntu-sso-client (Ubuntu Quantal):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.