Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89053 - dev-python/pygtk-2.6.1 doesn't die on testsuite failure
Summary: dev-python/pygtk-2.6.1 doesn't die on testsuite failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-14 02:33 UTC by Ryan Hill (RETIRED)
Modified: 2007-02-03 17:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2005-04-14 02:33:54 UTC
pygtk fails to die on testsuite failures.

>>> Test phase [enabled]: dev-python/pygtk-2.6.1
EEE...EEEEEEEEEEEEEEEE...E..............
======================================================================
ERROR: testSubType (test_subtype.TestSubType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../tests/test_subtype.py", line 10, in testSubType
    t = type('testtype2', (gobject.GObject, gtk.TreeModel), {})
AttributeError: 'NoneType' object has no attribute 'TreeModel'

======================================================================
ERROR: testTpBasicSize (test_subtype.TestSubType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../tests/test_subtype.py", line 18, in testTpBasicSize
    widget = testhelper.get_tp_basicsize(gtk.Widget)
AttributeError: 'NoneType' object has no attribute 'Widget'

======================================================================
ERROR: testDialogAdd (test_dialog.DialogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../tests/test_dialog.py", line 7, in testDialogAdd
    dialog = gtk.MessageDialog()
AttributeError: 'NoneType' object has no attribute 'MessageDialog'

======================================================================
ERROR: testGParam (enum.EnumTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../tests/enum.py", line 50, in testGParam
    win = gtk.Window()
AttributeError: 'NoneType' object has no attribute 'Window'

======================================================================
ERROR: testOutofBounds (enum.EnumTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../tests/enum.py", line 76, in testOutofBounds
    val = gtk.icon_size_register('fake', 24, 24)
AttributeError: 'NoneType' object has no attribute 'icon_size_register'

[snip]

----------------------------------------------------------------------
Ran 40 tests in 0.367s

FAILED (errors=20)
WARNING: gtk could not be imported
WARNING: gtk.gdk could not be imported
WARNING: gtk.glade could not be imported

>>> Install pygtk-2.6.1 into /var/tmp/portage/pygtk-2.6.1/image/ category dev-python


using "|| die" in the src_test function doesn't seem to do it, so maybe the test itself isn't returning an error code?

this affects 2.6.1 2.6.0 and possibly lower.
Comment 1 Bryan Østergaard (RETIRED) gentoo-dev 2007-02-03 13:14:22 UTC
Gnome people, is this still a problem or should the bug be closed?
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-02-03 17:32:35 UTC
Current stable pygtk passes it's tests.  I'd say this can be closed.