Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922328 - dev-python/wxpython-4.2.1 fails tests on x86: unittests/test_wxdatetime.py::datetime_Tests::test_datetime2: Fatal Python error: Aborted
Summary: dev-python/wxpython-4.2.1 fails tests on x86: unittests/test_wxdatetime.py::d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-17 18:19 UTC by matoro
Modified: 2024-06-17 23:45 UTC (History)
2 users (show)

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


Attachments
build.log and emerge --info (build.log.gz,73.22 KB, application/gzip)
2024-01-17 18:20 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-01-17 18:19:42 UTC
Output is kind of jumbled here but:

[gw6] [1699/1735] FAILED unittests/test_wxdatetime.py::datetime_Tests::test_datetime2 
Fatal Python error: Aborted

Current thread 0xf596c700 (most recent call first):
  File "/var/tmp/portage/dev-python/wxpython-4.2.1/work/wxPython-4.2.1-python3_11/unittests/test_wxdatetime.py", line 28 in test_datetime2
  File "/usr/lib/python3.11/unittest/case.py", line 579 in _callTestMethod
  File "/usr/lib/python3.11/unittest/case.py", line 623 in run
  File "/usr/lib/python3.11/unittest/case.py", line 678 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/unittest.py", line 333 in runtest
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 262 in <lambda>
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 341 in from_call
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 222 in call_and_report
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 133 in runtestprotocol
  File "/usr/lib/python3.11/site-packages/pytest_forked/__init__.py", line 68 in runforked
  File "/usr/lib/python3.11/site-packages/py/_process/forkedfunc.py", line 65 in _child
  File "/usr/lib/python3.11/site-packages/py/_process/forkedfunc.py", line 50 in __init__
  File "/usr/lib/python3.11/site-packages/pytest_forked/__init__.py", line 73 in forked_run_report
  File "/usr/lib/python3.11/site-packages/pytest_forked/__init__.py", line 51 in pytest_runtest_protocol
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.11/site-packages/xdist/remote.py", line 174 in run_one_test
  File "/usr/lib/python3.11/site-packages/xdist/remote.py", line 157 in pytest_runtestloop
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 325 in _main
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 271 in wrap_session
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.11/site-packages/xdist/remote.py", line 355 in <module>
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 1157 in executetask
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 296 in run
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 361 in _perform_spawn
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 343 in integrate_as_primary_thread
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 1142 in serve
  File "/usr/lib/python3.11/site-packages/execnet/gateway_base.py", line 1640 in serve
  File "<string>", line 8 in <module>
  File "<string>", line 1 in <module>

Extension modules: wx._core, wx._adv, wx._aui, wx._dataview, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, wx._glcanvas, wx._grid, wx._html, PIL._imaging, wx._stc, wx._media, wx._propgrid, wx._ribbon, wx._xml, wx._richtext, wx._xrc (total: 28)

Reproducible: Always
Comment 1 matoro archtester 2024-01-17 18:20:37 UTC
Created attachment 882501 [details]
build.log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-17 18:30:57 UTC
Try running it again? I remember something about it being flaky
Comment 3 matoro archtester 2024-01-17 18:52:00 UTC
(In reply to Sam James from comment #2)
> Try running it again? I remember something about it being flaky

No, this one issue is reproducible, in fact running it again causes two additional NEW inconsistent issues.

FAILED unittests/test_brush.py::BrushTests::test_BrushOperators>           raise SystemExit(msg)
E           SystemExit: Unable to access the X Display, is $DISPLAY set properly?

FAILED unittests/test_dialog.py::dialog_Tests::test_dialogTextSizer
>           raise SystemExit(msg)
E           SystemExit: Unable to access the X Display, is $DISPLAY set properly?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-17 23:39:57 UTC
For our purposes, we can change it to long...
Comment 5 Larry the Git Cow gentoo-dev 2024-06-17 23:45:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fe84cfb62bc21d0c876cefa3b53eef2607ccc0e

commit 0fe84cfb62bc21d0c876cefa3b53eef2607ccc0e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-17 23:44:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-17 23:44:09 +0000

    dev-python/wxpython: fix tests on 32-bit arches
    
    See commentary in the patch, but the gist is that we go back to 'long'
    as a hack, although it's not right for Windows.
    
    Closes: https://bugs.gentoo.org/922328
    Signed-off-by: Sam James <sam@gentoo.org>

 .../wxpython/files/wxpython-4.2.1-x86-time.patch   |  34 ++++++
 dev-python/wxpython/wxpython-4.2.1-r2.ebuild       | 128 +++++++++++++++++++++
 2 files changed, 162 insertions(+)