[PyQt] Next PyQt and SIP Releases
Darren Dale
dsdale24 at gmail.com
Thu Oct 14 13:05:05 BST 2010
On Wed, Oct 13, 2010 at 3:13 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Wed, 13 Oct 2010 11:50:21 -0400, Darren Dale <dsdale24 at gmail.com>
> wrote:
>> 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.
>
> Changes to the automate module are the cause of that.
>
>> 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?
>
> What you've included in the above is fine.
>
> I usually remember to run the tests before pushing to the website so, if
> there is still a failure, it would appear to be platform specific.
I just tested the latest snapshots with python2.6 on Kubuntu Maverick.
It is still possible to run the test suite without unittest2 installed
for py26, it yields a long list of attribute errors rather than
raising an import error during initialization. After installing
unittest2, the test suite ran without errors or failures. Also, the
test suite ran to completion without requiring any of the dialogs
receive focus. So it appears you were right, the issues I reported
look to be specific to OS X.
Darren
More information about the PyQt
mailing list