Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900659 - dev-python/bandit-1.7.5 fails tests
Summary: dev-python/bandit-1.7.5 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 08:35 UTC by Agostino Sarubbo
Modified: 2023-03-10 09:00 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,169.27 KB, text/plain)
2023-03-10 08:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-10 08:35:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/bandit-1.7.5 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-10 08:35:18 UTC
Created attachment 857103 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-10 08:35:19 UTC
Error(s) that match a know pattern:


'
FAILED (failures=16, errors=22)
FAIL: test_example_imports (tests.functional.test_runtime.RuntimeTests)
FAIL: test_example_nonexistent (tests.functional.test_runtime.RuntimeTests)
FAIL: test_example_nonsense2 (tests.functional.test_runtime.RuntimeTests)
FAIL: test_example_nonsense (tests.functional.test_runtime.RuntimeTests)
FAIL: test_example_okay (tests.functional.test_runtime.RuntimeTests)
FAIL: test_existing_and_new_candidates (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_help_arg (tests.functional.test_runtime.RuntimeTests)
FAIL: test_new_candidates_include_nosec_new_nosecs (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_new_candidates_include_nosec_only_nosecs (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_no_arguments (tests.functional.test_runtime.RuntimeTests)
FAIL: test_no_existing_no_new_candidates (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_no_existing_with_new_candidates (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_no_new_candidates_include_nosec (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_no_new_candidates (tests.functional.test_baseline.BaselineFunctionalTests)
FAIL: test_nonexistent_config (tests.functional.test_runtime.RuntimeTests)
FAIL: test_piped_input (tests.functional.test_runtime.RuntimeTests)
  File "/var/tmp/portage/dev-python/bandit-1.7.5/work/bandit-1.7.5-python3_9/install/usr/bin/bandit", line 5, in <module>
  File "/var/tmp/portage/dev-python/bandit-1.7.5/work/bandit-1.7.5-python3_9/install/usr/lib/python3.9/site-packages/bandit/core/__init__.py", line 7, in <module>
  File "/var/tmp/portage/dev-python/bandit-1.7.5/work/bandit-1.7.5-python3_9/install/usr/lib/python3.9/site-packages/bandit/core/manager.py", line 16, in <module>
  File "/var/tmp/portage/dev-python/bandit-1.7.5/work/bandit-1.7.5-python3_9/install/usr/lib/python3.9/site-packages/bandit/__init__.py", line 7, in <module>
    from bandit.cli.main import main
    from bandit.core import config  # noqa
    from bandit.core import manager  # noqa
    from rich import progress
ImportError: Failed to import test module: bandit
ImportError: Failed to import test module: tests.functional.test_functional
ImportError: Failed to import test module: tests.unit.cli.test_baseline
ImportError: Failed to import test module: tests.unit.cli.test_config_generator
ImportError: Failed to import test module: tests.unit.cli.test_main
ImportError: Failed to import test module: tests.unit.core.test_blacklisting
ImportError: Failed to import test module: tests.unit.core.test_config
ImportError: Failed to import test module: tests.unit.core.test_context
ImportError: Failed to import test module: tests.unit.core.test_docs_util
ImportError: Failed to import test module: tests.unit.core.test_issue
ImportError: Failed to import test module: tests.unit.core.test_manager
ImportError: Failed to import test module: tests.unit.core.test_meta_ast
ImportError: Failed to import test module: tests.unit.core.test_test_set
ImportError: Failed to import test module: tests.unit.core.test_util
ImportError: Failed to import test module: tests.unit.formatters.test_csv
ImportError: Failed to import test module: tests.unit.formatters.test_custom
ImportError: Failed to import test module: tests.unit.formatters.test_html
ImportError: Failed to import test module: tests.unit.formatters.test_json
ImportError: Failed to import test module: tests.unit.formatters.test_screen
ImportError: Failed to import test module: tests.unit.formatters.test_text
ImportError: Failed to import test module: tests.unit.formatters.test_xml
ImportError: Failed to import test module: tests.unit.formatters.test_yaml
ModuleNotFoundError: No module named 'rich'
ModuleNotFoundError: No module named \'rich\'
testtools.matchers._impl.MismatchError: 0 != 1
testtools.matchers._impl.MismatchError: 2 != 1
testtools.matchers._impl.MismatchError: 'Total lines of code: 12' not in ''
testtools.matchers._impl.MismatchError: 'Total lines of code: 4' not in 'Traceback (most recent call last):
Comment 3 Larry the Git Cow gentoo-dev 2023-03-10 09:00:46 UTC
The bug has been closed via the following commit(s):

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

commit b9fd1917921706384deac269bfb5b452795b7ad0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-10 09:00:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-10 09:00:36 +0000

    dev-python/bandit: add dev-python/rich dep
    
    Closes: https://bugs.gentoo.org/900659
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/bandit/{bandit-1.7.5.ebuild => bandit-1.7.5-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)