Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920090 - dev-python/wxpython-4.2.1 fails to run tests: __main__.py: error: unrecognized arguments: --forked -n
Summary: dev-python/wxpython-4.2.1 fails to run tests: __main__.py: error: unrecognize...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 917740
  Show dependency tree
 
Reported: 2023-12-16 01:01 UTC by matoro
Modified: 2024-01-04 17:08 UTC (History)
1 user (show)

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


Attachments
build.log and emerge --info (build.log.gz,46.24 KB, application/gzip)
2023-12-16 01:02 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-12-16 01:01:08 UTC
build.log and emerge --info in attachment.

>>> Test phase: dev-python/wxpython-4.2.1
 * python3_11: running distutils-r1_run_phase python_test
 * Starting Xvfb ...
 * Xvfb started on DISPLAY=:0
python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern -p no:salt-factories --deselect unittests/test_display.py::display_Tests::test_display --deselect unittests/test_frame.py::frame_Tests::test_frameRestore --deselect unittests/test_mousemanager.py::mousemanager_Tests::test_mousemanager1 --deselect unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardChar --deselect unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardKeyDownUp --deselect unittests/test_uiaction.py::uiaction_MouseTests --deselect unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric --deselect unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlCtor --deselect unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore --deselect unittests/test_intl.py::intl_Tests::test_intlGetString --deselect unittests/test_tipwin.py::tipwin_Tests::test_tipwinCtor --deselect unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 --deselect unittests/test_windowid.py::IdManagerTest::test_newIdRef03 --ignore unittests/test_webview.py --forked -n 10 unittests
ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
__main__.py: error: unrecognized arguments: --forked -n
  inifile: None
  rootdir: /var/tmp/portage/dev-python/wxpython-4.2.1/work/wxPython-4.2.1-python3_11

 * pytest failed with python3.11

Reproducible: Always
Comment 1 matoro archtester 2023-12-16 01:02:37 UTC
Created attachment 879553 [details]
build.log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-16 01:06:23 UTC
Missing xdist dep.
Comment 3 Larry the Git Cow gentoo-dev 2023-12-16 11:02:36 UTC
The bug has been closed via the following commit(s):

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

commit 0e60737088dfb4499e07b9eaf5e4055eaec116d1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-16 11:01:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-16 11:02:28 +0000

    dev-python/wxpython: add missing pytest-xdist test dep
    
    Closes: https://bugs.gentoo.org/920090
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/wxpython/wxpython-4.2.1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 4 matoro archtester 2024-01-04 00:55:38 UTC
This fix appears to be only partial, it fixes the -n argument but --forked is still unrecognized.

 * python3_11: running distutils-r1_run_phase python_test                                                                                      
 * Starting Xvfb ...                                                                                                                           
 * Xvfb started on DISPLAY=:0                                                                                                                  
python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern -p no:salt-factories --deselect unittests/test_display.py::display_Tests::test_display --deselect unittests/test_frame.py::frame_Tests::test_frameRestore --deselect unittests/test_mousemanager.py::mousemanager_Te
sts::test_mousemanager1 --deselect unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardChar --deselect unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardKeyDownUp --deselect unittests/test_uiaction.py::uiaction_MouseTests --deselect unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric --deselect unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piect
rlCtor --deselect unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore --deselect unittests/test_intl.py::intl_Tests::test_intlGetString --deselect unittests/test_tipwin.py::tipwin_Tests::test_tipwinCtor --deselect unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 --deselect unittests/test_windowid.py::IdManagerTest::test_newIdRef03 --ignore unittests/test_webview.py --forked -n 10 unittests
ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
__main__.py: error: unrecognized arguments: --forked
  inifile: None
  rootdir: /var/tmp/portage/dev-python/wxpython-4.2.1/work/wxPython-4.2.1-python3_11




# qlist -Iv dev-python/pytest-xdist
dev-python/pytest-xdist-3.5.0
Comment 5 Larry the Git Cow gentoo-dev 2024-01-04 17:08:48 UTC
The bug has been closed via the following commit(s):

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

commit ed2b32cd319ce9fa6f67382e07b146cf722bc199
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-04 17:07:33 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-04 17:08:16 +0000

    dev-python/wxpython: Add pytest-forked dep
    
    Closes: https://bugs.gentoo.org/920090
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

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