Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 89053

Summary: dev-python/pygtk-2.6.1 doesn't die on testsuite failure
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: [OLD] DevelopmentAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.