~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/__init__.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-21 14:13:32 UTC
  • mfrom: (13259.1.6 webkit-yuitest-love-3)
  • Revision ID: launchpad@pqm.canonical.com-20110621141332-rdzgifrhd7i3b8og
[rs=sinzui][no-qa] Fix YUI test. Webkit radio buttons are not broken
 in Lucid, they are broken in natty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
940
940
        super(YUIUnitTestCase, self).setUp()
941
941
        # html5browser imports from the gir/pygtk stack which causes
942
942
        # twisted tests to break because of gtk's initialize.
943
 
        try:
944
 
            import html5browser
945
 
            # Hush lint.
946
 
            html5browser
947
 
        except ImportError:
948
 
            html5browser = None
 
943
        import html5browser
949
944
        client = html5browser.Browser()
950
945
        html_uri = 'file://%s' % os.path.join(
951
946
            config.root, 'lib', self.test_path)