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

Bug 722716

Summary: dev-python/wxpython fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo wxWidgets Herd <wxwidgets>
Status: CONFIRMED ---    
Severity: normal CC: alexey+gentoo, bkohler, mgorny, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=714566
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-05-12 14:45:43 UTC
This is an auto-filled bug because dev-python/wxpython fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask..
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-12 14:45:49 UTC
Created attachment 638450 [details]
build.log

build log and emerge --info
Comment 2 Ben Kohler gentoo-dev 2020-05-20 12:25:49 UTC
Is this a regression? If not, please don't make it block the stablereq bug
Comment 3 Andreas Sturmlechner gentoo-dev 2020-05-23 19:25:18 UTC
Is that even a real error or just some timing issue? Tests succeeded for me.



==================================== ERRORS ====================================
___________ ERROR at teardown of lib_buttons_Tests.test_lib_buttons2 ___________
unittests/wtc.py:33: in tearDown
    timer = wx.PyTimer(_cleanup)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <wx.core.PyTimer object at 0x7fb056f8f870>
notify = <function WidgetTestCase.tearDown.<locals>._cleanup at 0x7fb06c0944d0>

    def __init__(self, notify):
>       Timer.__init__(self)
E       wx._core.PyNoAppError: The wx.App object must be created first!

wx/core.py:2249: PyNoAppError
=================================== FAILURES ===================================
_____________________ lib_buttons_Tests.test_lib_buttons2 ______________________
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-06-06 17:24:49 UTC
That's a better result than mine.  For me, 3 tests fail on py3.6, and the testsuite segfaults in the middle on py3.7+.
Comment 5 Thomas Deutschmann gentoo-dev Security 2020-09-03 14:12:38 UTC
For x86:

> =============================================== short test summary info ================================================
> FAILED unittests/test_lib_buttons.py::lib_buttons_Tests::test_lib_buttons2 - wx._core.PyNoAppError: The wx.App object...
> FAILED unittests/test_listctrl.py::listctrl_Tests::test_listctrlItemData02 - AssertionError: OverflowError not raised
> ERROR unittests/test_lib_buttons.py::lib_buttons_Tests::test_lib_buttons2 - wx._core.PyNoAppError: The wx.App object ...
> =============== 2 failed, 1668 passed, 21 skipped, 4 xfailed, 322 warnings, 1 error in 206.33s (0:03:26) ===============
>  * ERROR: dev-python/wxpython-4.0.7::gentoo failed (test phase):
>  *   Failed to run 'pytest -vv unittests'
> 

I will not mark stable. It's a pain for arch teams to encounter test failures: We have to read logs, understand the failure, look for reports... if you want your package stable with test failures, either disable failing tests you are aware of or just restrict tests in that version. But please don't waste arch tester's time.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-13 04:34:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=755fb653b160938a2ebb4de591da3798b36b160c

commit 755fb653b160938a2ebb4de591da3798b36b160c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-12-13 04:34:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-12-13 04:34:43 +0000

    dev-python/wxpython: restrict tests
    
    They're horrifically broken right now - either hanging
    or segfaulting.
    
    Bug: https://bugs.gentoo.org/722716
    Bug: https://bugs.gentoo.org/726812
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/wxpython/wxpython-4.0.7.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)