[PyQt] Next PyQt and SIP Releases

Darren Dale dsdale24 at gmail.com
Wed Oct 13 16:50:21 BST 2010


On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> The current PyQt and SIP snapshots can be considered release candidates.
> Now is a good time to check them against your favorite applications.

I just installed qt-4.7 on snow leopard, using macports (using a
custom portfile with very minor changes, see
http://trac.macports.org/ticket/26646). I installed the most recent
sip and pyqt4 snapshots for python-2.6 and python-2.7, and then the
dip snapshot. When I run the dip testsuite with either python version,
it stalls and shows a dialog with a spinbox containing "10" and cancel
and ok buttons. I have to give focus to this dialog box, at which
point it closes, and then many more widgets are opened and closed in
rapid succession. I don't recall the widgets rendering before now.
Here is the resulting test report:

..........................................................................................................................................................................................................................................F.......F....
======================================================================
FAIL: test_list (tests.dip_ui.test_mapping.TestMapping)
Test list attributes of a mapping.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/darren/Downloads/dip-py2-gpl-0.3-snapshot-4deec720d5c2/test/tests/dip_ui/test_mapping.py",
line 81, in test_list
    self.assertEqual(model['attr'], ['first', '2nd'])
AssertionError: Lists differ: ['first', 'second'] != ['first', '2nd']

First differing element 1:
second
2nd

- ['first', 'second']
?            ^^^^

+ ['first', '2nd']
?            ^


======================================================================
FAIL: test_List (tests.dip_ui.test_model.TestModel)
Test List attributes of a model.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/darren/Downloads/dip-py2-gpl-0.3-snapshot-4deec720d5c2/test/tests/dip_ui/test_model.py",
line 215, in test_List
    self.assertEqual(model.attr, ['first', '2nd'])
AssertionError: ['first', 'second'] != ['first', '2nd']

----------------------------------------------------------------------
Ran 247 tests in 111.221s

FAILED (failures=2)



It looks like the dialog issue showed up in the fifth test before the
first failure. Is there a way to print a more verbose report, so in
the future I can do a better job identifying which tests contain
unreported issues?

Darren


More information about the PyQt mailing list