Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954151 - dev-python/fastbencode-0.3.1: doesn't test C extensions
Summary: dev-python/fastbencode-0.3.1: doesn't test C extensions
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-21 12:53 UTC by Michał Górny
Modified: 2025-04-23 15:18 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-21 12:53:27 UTC
Looks like it runs tests on source directory.  If I fix that, I get extra test failures with Python 3.12:

======================================================================
FAIL: test_dict_deepnested (tests.test_bencode.TestBencodeDecode.test_dict_deepnested)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/fastbencode-0.3.1/work/fastbencode-0.3.1/tests/test_bencode.py", line 317, in test_dict_deepnested
    self._run_check_error(
  File "/tmp/portage/dev-python/fastbencode-0.3.1/work/fastbencode-0.3.1/tests/test_bencode.py", line 234, in _run_check_error
    self.assertRaises(exc, self.module.bdecode, bad)
AssertionError: RuntimeError not raised by bdecode

======================================================================
FAIL: test_dict_deep_nested (tests.test_bencode.TestBencodeEncode.test_dict_deep_nested)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/fastbencode-0.3.1/work/fastbencode-0.3.1/tests/test_bencode.py", line 447, in test_dict_deep_nested
    self.assertRaises(RuntimeError, self.module.bencode, top)
AssertionError: RuntimeError not raised by bencode

======================================================================
FAIL: test_list_deep_nested (tests.test_bencode.TestBencodeEncode.test_list_deep_nested)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/fastbencode-0.3.1/work/fastbencode-0.3.1/tests/test_bencode.py", line 433, in test_list_deep_nested
    self.assertRaises(RuntimeError, self.module.bencode, top)
AssertionError: RuntimeError not raised by bencode

----------------------------------------------------------------------
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-21 14:07:24 UTC
I find it worrying that there don't seem to have been any bugs filed for this by tinderboxes in other packages too. Maybe need to add that silly "QA notice:" prefix to more of these in the eclass?
Comment 2 Larry the Git Cow gentoo-dev 2025-04-23 15:18:42 UTC
The bug has been referenced in the following commit(s):

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

commit a24673569d3d66f4c554e6c7dfb12e01912172e5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-23 09:50:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-23 15:15:11 +0000

    python-utils-r1.eclass: add 'QA Notice:' prefix to eqawarn
    
    We need to fix this properly at some point in Portage/PMS but whatever,
    for now, add the 'QA Prefix:' prefix to eqawarn so tinderboxes pick
    these up and report them.
    
    Bug: https://bugs.gentoo.org/954151
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/python-utils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 636db84c297674e57df06eb9c318d508d94a7da5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-23 09:50:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-23 15:15:10 +0000

    python-r1.eclass: add 'QA Notice:' prefix to eqawarn
    
    We need to fix this properly at some point in Portage/PMS but whatever,
    for now, add the 'QA Prefix:' prefix to eqawarn so tinderboxes pick
    these up and report them.
    
    Bug: https://bugs.gentoo.org/954151
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/python-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 32bbaebe4b727997e483d6b78c8d71cf9fde6b7e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-23 09:47:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-23 15:15:09 +0000

    distutils-r1.eclass: add 'QA Notice:' prefix to eqawarn
    
    We need to fix this properly at some point in Portage/PMS but whatever,
    for now, add the 'QA Prefix:' prefix to eqawarn so tinderboxes pick
    these up and report them.
    
    Bug: https://bugs.gentoo.org/954151
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/distutils-r1.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)