Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 649762 Details for
Bug 733136
dev-python/bandit-1.6.2: fails tests (No such file or directory: 'bandit': 'bandit'")
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
file_733136.txt (text/plain), 85.03 KB, created by
Sam James
on 2020-07-18 12:26:59 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Sam James
Created:
2020-07-18 12:26:59 UTC
Size:
85.03 KB
patch
obsolete
>[32;01m * [39;49;00mPackage: dev-python/bandit-1.6.2 >[32;01m * [39;49;00mRepository: gentoo >[32;01m * [39;49;00mMaintainer: prometheanfire@gentoo.org >[32;01m * [39;49;00mUSE: abi_x86_32 elibc_glibc kernel_linux python_targets_python3_7 test userland_GNU x86 >[32;01m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking bandit-1.6.2.tar.gz to /var/tmp/portage/dev-python/bandit-1.6.2/work >>>> Source unpacked in /var/tmp/portage/dev-python/bandit-1.6.2/work >>>> Preparing source in /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2 ... > [32;01m*[0m python3_7: running distutils-r1_run_phase distutils-r1_python_compile > [33;01m*[0m DISTUTILS_USE_SETUPTOOLS value is probably incorrect > [33;01m*[0m value: DISTUTILS_USE_SETUPTOOLS=bdepend (default?) > [33;01m*[0m expected: DISTUTILS_USE_SETUPTOOLS=rdepend >python3.7 setup.py build -j 9 >running build >running build_py >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/json.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/utils.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/text.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/custom.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/screen.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/yaml.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/html.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/xml.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >copying bandit/formatters/csv.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/formatters >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/cli >copying bandit/cli/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/cli >copying bandit/cli/config_generator.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/cli >copying bandit/cli/baseline.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/cli >copying bandit/cli/main.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/cli >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/blacklists >copying bandit/blacklists/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/blacklists >copying bandit/blacklists/utils.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/blacklists >copying bandit/blacklists/calls.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/blacklists >copying bandit/blacklists/imports.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/blacklists >copying bandit/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit >copying bandit/__main__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/context.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/utils.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/blacklisting.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/node_visitor.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/docs_utils.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/constants.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/test_properties.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/test_set.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/config.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/meta_ast.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/metrics.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/extension_loader.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/tester.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/issue.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >copying bandit/core/manager.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/core >creating /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/__init__.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/ssh_no_host_key_verification.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/insecure_ssl_tls.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/weak_cryptographic_key.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/django_sql_injection.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/injection_sql.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/general_bad_file_permissions.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/injection_wildcard.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/django_xss.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/yaml_load.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/general_hardcoded_password.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/crypto_request_no_cert_validation.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/injection_shell.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/asserts.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/hashlib_new_insecure_functions.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/general_bind_all_interfaces.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/app_debug.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/exec.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/try_except_continue.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/general_hardcoded_tmp.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/injection_paramiko.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/jinja2_templates.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/try_except_pass.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >copying bandit/plugins/mako_templates.py -> /var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2-python3_7/lib/bandit/plugins >running egg_info >writing bandit.egg-info/PKG-INFO >writing dependency_links to bandit.egg-info/dependency_links.txt >writing entry points to bandit.egg-info/entry_points.txt >writing requirements to bandit.egg-info/requires.txt >writing top-level names to bandit.egg-info/top_level.txt >[pbr] Reusing existing SOURCES.txt >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/bandit-1.6.2 > [32;01m*[0m python3_7: running distutils-r1_run_phase python_test >{3} tests.functional.test_baseline.BaselineFunctionalTests.test_existing_and_new_candidates [0.027805s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 194, in test_existing_and_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{0} tests.functional.test_baseline.BaselineFunctionalTests.test_new_candidates_include_nosec_only_nosecs [0.027383s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 249, in test_new_candidates_include_nosec_only_nosecs' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{3} tests.functional.test_baseline.BaselineFunctionalTests.test_no_existing_with_new_candidates [0.026554s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 163, in test_no_existing_with_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{3} tests.functional.test_baseline.BaselineFunctionalTests.test_no_new_candidates [0.022186s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 118, in test_no_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{5} tests.functional.test_baseline.BaselineFunctionalTests.test_new_candidates_include_nosec_new_nosecs [0.022413s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 282, in test_new_candidates_include_nosec_new_nosecs' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.functional.test_baseline.BaselineFunctionalTests.test_no_existing_no_new_candidates [0.021678s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 140, in test_no_existing_no_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.functional.test_functional.FunctionalTests.test_asserts [0.020228s] ... ok >{4} tests.functional.test_baseline.BaselineFunctionalTests.test_no_new_candidates_include_nosec [0.071232s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 224, in test_no_new_candidates_include_nosec' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{6} tests.functional.test_functional.FunctionalTests.test_blacklist_pycrypto [0.044905s] ... ok >{1} tests.functional.test_functional.FunctionalTests.test_baseline_filter [0.047924s] ... ok >{1} tests.functional.test_functional.FunctionalTests.test_httplib_https [0.004730s] ... ok >{1} tests.functional.test_functional.FunctionalTests.test_imports [0.001926s] ... ok >{1} tests.functional.test_functional.FunctionalTests.test_mark_safe [0.002700s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_flask_debug_true [0.008566s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_binding [0.063334s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_ftp_usage [0.005655s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_crypto_md5 [0.036720s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_hashlib_new_insecure_functions [0.008705s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_hardcoded_tmp [0.011442s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_os_startfile [0.004458s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_imports_aliases [0.006752s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_blacklist_input [0.054472s] ... ok >{1} tests.functional.test_runtime.RuntimeTests.test_example_imports [0.035837s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 124, in test_example_imports' > b" (retcode, output) = self._test_example(['bandit', ], ['imports.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.functional.test_functional.FunctionalTests.test_imports_function [0.006146s] ... ok >[ INFO ] No output format specified, using terminal >[ ERROR ] Bandit baseline must be called from a git project root >{1} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo [0.003202s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_pickle [0.019302s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_mako_templating [0.004327s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_try_except_pass [0.007442s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_cipher_modes [0.074301s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_dill [0.017256s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_os_chmod [0.012838s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_paramiko_injection [0.004129s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_skip [0.006583s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_django_sql_injection_raw [0.014850s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_no_blacklist_pycryptodome [0.006391s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_django_sql_injection [0.102071s] ... ok >[main] ERROR : >{5} tests.functional.test_functional.FunctionalTests.test_imports_using_importlib [0.007374s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_nonsense [0.001393s] ... ok >{2} tests.functional.test_functional.FunctionalTests.test_ssl_insecure_version [0.017216s] ... ok >{1} tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings [0.045443s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpna50cala' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{1} tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file [0.000671s] ... ok >[config] WARNING Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >{1} tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger [0.000625s] ... ok >{1} tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_value [0.000143s] ... ok >{1} tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_no_values [0.000115s] ... ok >{1} tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config [0.002337s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_random_module [0.009952s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_weak_cryptographic_key [0.037612s] ... ok >[manager] WARNING Skipping directory (thing), use -r flag to scan contents >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp327pa9sb >[xml] INFO XML output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpna84_m_2 >{2} tests.functional.test_functional.FunctionalTests.test_wildcard_injection [0.011396s] ... ok >{1} tests.unit.core.test_config.TestConfigCompat.test_blacklist_error [0.008740s] ... ok >{1} tests.unit.core.test_config.TestGetOption.test_levels_not_exist [0.001364s] ... ok >{1} tests.unit.core.test_context.ContextTests.test_call_args_count [0.000192s] ... ok >{1} tests.unit.core.test_context.ContextTests.test_check_call_arg_value [0.000314s] ... ok >{1} tests.unit.core.test_issue.IssueTests.test_issue_create [0.000110s] ... ok >{1} tests.unit.core.test_manager.ManagerTests.test_compare_baseline [0.000695s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_partial_path [0.021355s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_popen_wrappers [0.018020s] ... ok >{1} tests.unit.core.test_manager.ManagerTests.test_create_manager_with_profile [0.000688s] ... ok >{1} tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir [0.001380s] ... ok >{1} tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip [0.000969s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_subdirectory_okay [0.002429s] ... ok >{5} tests.functional.test_functional.FunctionalTests.test_telnet_usage [0.011932s] ... ok >{2} tests.functional.test_runtime.RuntimeTests.test_example_nonsense2 [0.040745s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 112, in test_example_nonsense2' > b" ['bandit', ], ['nonsense2.py', ]" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{4} tests.functional.test_functional.FunctionalTests.test_django_xss_secure [0.056218s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_exec [0.002506s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_hardcoded_passwords [0.010485s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_httpoxy [0.018634s] ... ok >{7} tests.functional.test_functional.FunctionalTests.test_ciphers [0.095040s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_subprocess_shell [0.040513s] ... ok >{3} tests.functional.test_functional.FunctionalTests.test_unverified_context [0.003322s] ... ok >{1} tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node [0.000115s] ... ok >{1} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat [0.001082s] ... ok >{1} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id [0.000821s] ... ok >{1} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none [0.000953s] ... ok >{1} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none [0.000940s] ... ok >{1} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingmid [0.005797s] ... ok >{1} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_sys [0.007363s] ... ok >{1} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_with_dot [0.005449s] ... ok >{1} tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline [0.001923s] ... ok >{1} tests.unit.formatters.test_xml.XmlFormatterTests.test_report [0.001431s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_django_xss_insecure [0.081461s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_eval [0.009011s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_host_key_verification [0.004359s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_metric_gathering [0.008162s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_mktemp [0.004772s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_nosec [0.004117s] ... ok >{0} tests.functional.test_functional.FunctionalTests.test_os_exec [0.009447s] ... ok >{0} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger [0.000308s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_imports_from [0.002404s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_jinja2_templating [0.018565s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_multiline_code [0.003227s] ... ok >{6} tests.functional.test_functional.FunctionalTests.test_xml [0.073037s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >{3} tests.functional.test_functional.FunctionalTests.test_urlopen [0.030098s] ... ok >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: None >[main] INFO cli exclude tests: None >[main] WARNING Could not open baseline report: base.json >Bandit baseline must be called from a git project root >Multiple .bandit files found - scan separately or choose one with --ini > /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp33z37r4t/.bandit, /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp33z37r4t/second_config_directory/.bandit >[main] ERROR bandit.yaml : Could not read config file. >{7} tests.functional.test_functional.FunctionalTests.test_code_line_numbers [0.005078s] ... ok >{7} tests.functional.test_functional.FunctionalTests.test_ignore_skip [0.008061s] ... ok >{7} tests.functional.test_functional.FunctionalTests.test_okay [0.002297s] ... ok >{7} tests.functional.test_functional.FunctionalTests.test_try_except_continue [0.008523s] ... ok >{6} tests.functional.test_runtime.RuntimeTests.test_help_arg [0.023314s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 66, in test_help_arg' > b" (retcode, output) = self._test_runtime(['bandit', '-h'])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.functional.test_runtime.RuntimeTests.test_no_arguments [0.035655s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 42, in test_no_arguments' > b" (retcode, output) = self._test_runtime(['bandit', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults [0.002090s] ... ok >{2} tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_bandit_files [0.000791s] ... ok >{2} tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror [0.007629s] ... ok >{2} tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue [0.000153s] ... ok >{2} tests.unit.core.test_context.ContextTests.test_call_args [0.000550s] ... ok >{2} tests.unit.core.test_context.ContextTests.test_call_function_name [0.000106s] ... ok >{2} tests.unit.core.test_context.ContextTests.test_is_module_imported_exact [0.000101s] ... ok >{2} tests.unit.core.test_context.ContextTests.test_statement [0.000132s] ... ok >{2} tests.unit.core.test_issue.IssueTests.test_issue_str [0.000129s] ... ok >{2} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id [0.000913s] ... ok >{3} tests.functional.test_runtime.RuntimeTests.test_example_nonsense [0.022293s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 105, in test_example_nonsense' > b" (retcode, output) = self._test_example(['bandit', ], ['nonsense.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpgr6jsnxp' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{5} tests.functional.test_runtime.RuntimeTests.test_example_nonexistent [0.034782s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 91, in test_example_nonexistent' > b" ['bandit', ], ['nonexistent.py', ]" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{5} tests.functional.test_runtime.RuntimeTests.test_example_okay [0.024738s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 98, in test_example_okay' > b" (retcode, output) = self._test_example(['bandit', ], ['okay.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.unit.core.test_util.UtilTests.test_deepgetattr [0.006080s] ... ok >{3} tests.functional.test_runtime.RuntimeTests.test_help_in_readme [0.020438s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 78, in test_help_in_readme' > b" (retcode, output) = self._test_runtime(['bandit', '-h'])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{2} tests.unit.core.test_util.UtilTests.test_escaped_representation_mixed [0.006198s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_os_popen [0.009926s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_os_spawn [0.009454s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_os_system [0.002391s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_requests_ssl_verify_disabled [0.015609s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpwxli9j_w' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{6} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo [0.002605s] ... ok >{6} tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults [0.000741s] ... ok >{6} tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_multi_bandit_files [0.002892s] ... ok >{6} tests.unit.cli.test_main.BanditCLIMainTests.test_main_config_unopenable [0.002424s] ... ok >{6} tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data [0.009318s] ... ok >{7} tests.functional.test_runtime.RuntimeTests.test_nonexistent_config [0.021890s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 60, in test_nonexistent_config' > b" 'bandit', '-c', 'nonexistent.yml', 'xx.py'" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{6} tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test [0.008451s] ... ok >{2} tests.unit.core.test_util.UtilTests.test_get_call_name3 [0.012291s] ... ok >{5} tests.functional.test_runtime.RuntimeTests.test_piped_input [0.022488s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 48, in test_piped_input' > b" (retcode, output) = self._test_runtime(['bandit', '-'], infile)" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' >{4} tests.functional.test_functional.FunctionalTests.test_sql_statements [0.021705s] ... ok >{6} tests.unit.core.test_config.TestGetOption.test_levels [0.001364s] ... ok >{6} tests.unit.core.test_config.TestInit.test_file_does_not_exist [0.000471s] ... ok >{6} tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline [0.002078s] ... ok >{6} tests.unit.core.test_manager.ManagerTests.test_discover_files_include [0.001145s] ... ok >{6} tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files [0.001551s] ... ok >{6} tests.unit.core.test_manager.ManagerTests.test_is_file_included [0.001040s] ... ok >{6} tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success [0.000670s] ... ok >{6} tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults [0.000969s] ... ok >{6} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific [0.001070s] ... ok >{2} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_dir [0.006182s] ... ok >{2} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_typical [0.006365s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_tempnam [0.006426s] ... ok >{2} tests.unit.core.test_util.UtilTests.test_namespace_path_split [0.006301s] ... ok >[html] INFO HTML output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpiix2jh1u >{6} tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node [0.006419s] ... ok >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpr6pnm3ba >{6} tests.unit.core.test_util.UtilTests.test_check_ast_node_good [0.006879s] ... ok >{4} tests.functional.test_functional.FunctionalTests.test_yaml [0.008871s] ... ok >{6} tests.unit.core.test_util.UtilTests.test_escaped_representation_invalid [0.006532s] ... ok >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpjkhymdnz >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpjkhymdnz >{2} tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents [0.015449s] ... ok >{6} tests.unit.formatters.test_text.TextFormatterTests.test_no_issues [0.001689s] ... ok >[ INFO ] No output format specified, using terminal >{6} tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline [0.002703s] ... ok >usage: bandit-config-generator [-h] [--show-defaults] [-o OUTPUT_FILE] [-t TESTS] [-s SKIPS] > >Bandit Config Generator > > This tool is used to generate an optional profile. The profile may be used > to include or skip tests and override values for plugins. > > When used to store an output profile, this tool will output a template that > includes all plugins and their default settings. Any settings which aren't > being overridden can be safely removed from the profile and default values > will be used. Bandit will prefer settings from the profile over the built > in values. > >optional arguments: > -h, --help show this help message and exit > --show-defaults show the default settings values for each plugin but do not output a profile > -o OUTPUT_FILE, --out OUTPUT_FILE > output file to save profile > -t TESTS, --tests TESTS > list of test names to run > -s SKIPS, --skip SKIPS > list of test names to skip >[ ERROR ] Bandit baseline must not be called with the -o option >{0} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument [0.141219s] ... ok >{0} tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger [0.000290s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: None >[main] INFO cli exclude tests: None >[main] WARNING Baseline must be used with one of the following formats: ['custom', 'html', 'json', 'screen', 'txt'] >{0} tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format [0.011160s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: badID >[main] INFO cli exclude tests: None >[main] ERROR Unknown test found in profile: badID >{0} tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_tests [0.005303s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp5tx1e3q1' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{0} tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test [0.008106s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmplvhg_nvv' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >Current working directory is dirty and must be resolved >{0} tests.unit.core.test_config.TestConfigCompat.test_deprecation_message [0.008488s] ... ok >{0} tests.unit.core.test_context.ContextTests.test_call_keywords [0.000675s] ... ok >{0} tests.unit.core.test_context.ContextTests.test_function_def_defaults_qual [0.000798s] ... ok >{0} tests.unit.core.test_issue.IssueTests.test_issue_filter_severity [0.000187s] ... ok >{0} tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude [0.001335s] ... ok >{0} tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches [0.000707s] ... ok >{0} tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir [0.000896s] ... ok >Git command not found >{3} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo [0.118654s] ... ok >{0} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist [0.001057s] ... ok >{0} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist [0.000959s] ... ok >{0} tests.unit.core.test_util.UtilTests.test_escaped_representation_simple [0.006456s] ... ok >{7} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure [0.126358s] ... ok >[main] DEBUG logging initialized >{7} tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults [0.004417s] ... ok >{7} tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode [0.000291s] ... ok >{7} tests.unit.cli.test_main.BanditCLIMainTests.test_init_extensions [0.000123s] ... ok >{0} tests.unit.core.test_util.UtilTests.test_get_call_name1 [0.005615s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >{0} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_invalid_path [0.005364s] ... ok >File bandit_baseline_result.txt already exists, aborting >[html] INFO HTML output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmphd7me2ag >{7} tests.unit.cli.test_main.BanditCLIMainTests.test_main_profile_not_found [0.006150s] ... ok >{7} tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults [0.000169s] ... ok >[json] INFO JSON output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpjlc0za1s >{0} tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped [0.004210s] ... ok >[screen] INFO Screen formatter output was not written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpvonflxlb, consider '-f txt' >[screen] INFO Screen formatter output was not written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpvonflxlb, consider '-f txt' >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp80_1lw3y' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{7} tests.unit.core.test_config.TestConfigCompat.test_converted_include [0.009213s] ... ok >{0} tests.unit.formatters.test_json.JsonFormatterTests.test_report [0.002091s] ... ok >{0} tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue [0.000553s] ... ok >{0} tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline [0.002624s] ... ok >{5} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file [0.123965s] ... ok >{7} tests.unit.core.test_config.TestGetSetting.test_not_exist [0.001021s] ... ok >{7} tests.unit.core.test_context.ContextTests.test__get_literal_value [0.000246s] ... ok >{7} tests.unit.core.test_context.ContextTests.test_get_lineno_for_call_arg [0.000498s] ... ok >{7} tests.unit.core.test_context.ContextTests.test_is_module_being_imported [0.000085s] ... ok >{7} tests.unit.core.test_context.ContextTests.test_is_module_imported_like [0.000079s] ... ok >{7} tests.unit.core.test_context.ContextTests.test_node [0.000081s] ... ok >{7} tests.unit.core.test_issue.IssueTests.test_get_code [0.000406s] ... ok >{7} tests.unit.core.test_manager.ManagerTests.test_matches_globlist [0.001434s] ... ok >{7} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none [0.001074s] ... ok >{7} tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type [0.005801s] ... ok >{7} tests.unit.core.test_util.UtilTests.test_escaped_representation_valid_not_printable [0.006663s] ... ok >{7} tests.unit.core.test_util.UtilTests.test_get_call_name2 [0.005610s] ... ok >{7} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingmid [0.005636s] ... ok >[95mRun started:2020-07-18 12:19:43.229653[0m >[95mFiles in scope (1):[0m > binding.py (score: {SEVERITY: 1, CONFIDENCE: 1}) >[95mFiles excluded (1):[0m > def.py >[95m >Test results:[0m >ISSUE_OUTPUT_TEXT >-------------------------------------------------- >ISSUE_OUTPUT_TEXT >-------------------------------------------------- >[95m >Code scanned:[0m > Total lines of code: 1000 > Total lines skipped (#nosec): 50 >[95m >Run metrics:[0m > Total issues (by severity): > Undefined: 1 > Low: 1 > Medium: 1 > High: 1 > Total issues (by confidence): > Undefined: 1 > Low: 1 > Medium: 1 > High: 1 >[95mFiles skipped (1):[0m > abc.py (File is bad) >{7} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_syms [0.005844s] ... ok >{7} tests.unit.core.test_util.UtilTests.test_path_for_function [0.006156s] ... ok >[screen] INFO Screen formatter output was not written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpxjpv0exk, consider '-f txt' >[json] INFO JSON output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpqouo5c33 >{7} tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues [0.001912s] ... ok >{7} tests.unit.formatters.test_yaml.YamlFormatterTests.test_report [0.003042s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/usr/lib/python3.7/site-packages/mock/mock.py", line 1330, in patched' > b' return func(*args, **keywargs)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/unit/formatters/test_yaml.py", line 83, in test_report' > b' data = yaml.load(f.read())' > b' File "/usr/lib/python3.7/site-packages/yaml/__init__.py", line 109, in load' > b' raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")' > b'RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348' > b'' ><MagicMock name='get_config_settings()' id='4135906956'> >{4} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_bandit_baseline [0.155198s] ... FAILED > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/unit/cli/test_baseline.py", line 121, in test_bandit_baseline' > b' subprocess.call(baseline_command))' > b' File "/usr/lib/python3.7/subprocess.py", line 339, in call' > b' with Popen(*popenargs, **kwargs) as p:' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit-baseline': 'bandit-baseline'" > b'' >Temporary file _bandit_baseline_run.json_ needs to be removed prior to running >[ INFO ] No output format specified, using terminal >Unable to parse config file /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpzmuen6su or missing [bandit] section >{3} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file [0.103901s] ... ok >{3} tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target [0.001757s] ... ok >{3} tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_target [0.000110s] ... ok >{3} tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_arg_val [0.000121s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: None >[main] INFO cli exclude tests: badID >[main] ERROR Unknown test found in profile: badID >{3} tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_skip_tests [0.008044s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpos812d9_' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >[config] ERROR while parsing a flow sequence > in "/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpba_lqidb", line 1, column 3 >expected ',' or ']', but got '<stream end>' > in "/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpba_lqidb", line 1, column 14 >{3} tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data [0.009174s] ... ok >{3} tests.unit.core.test_config.TestInit.test_yaml_invalid [0.001776s] ... ok >{3} tests.unit.core.test_context.ContextTests.test_call_function_name_qual [0.000142s] ... ok >{3} tests.unit.core.test_context.ContextTests.test_context_create [0.000201s] ... ok >{3} tests.unit.core.test_context.ContextTests.test_string_val [0.000092s] ... ok >{3} tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence [0.000190s] ... ok >{3} tests.unit.core.test_manager.ManagerTests.test_results_count [0.000887s] ... ok >{3} tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror [0.001151s] ... ok >{3} tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str [0.000216s] ... ok >{3} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all [0.001027s] ... ok >{3} tests.unit.core.test_util.UtilTests.test_namespace_path_join [0.006097s] ... ok >[utils] WARNING Unable to parse config file /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp2yegqknz or missing [bandit] section >{3} tests.unit.core.test_util.UtilTests.test_parse_ini_file [0.006894s] ... ok >[ INFO ] No output format specified, using terminal >[ INFO ] Got current commit: [19d678f6ef9dc881b868ea5c222fd2f6fa2ee028 master] >[ ERROR ] Parent commit not available >{5} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit [0.152554s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: None >[main] INFO cli exclude tests: None >[main] INFO using config: bandit.yaml >[main] INFO running on Python 3.7.8 >[text] INFO Text output written to file: output >{5} tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results [0.010687s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: None >[main] INFO cli exclude tests: None >[main] INFO using config: bandit.yaml >[main] INFO running on Python 3.7.8 >[text] INFO Text output written to file: output >[ ERROR ] Unable to get current or parent commit >{5} tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results [0.005629s] ... ok >{4} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure [0.119319s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp45u1ni3x' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{5} tests.unit.core.test_config.TestConfigCompat.test_bad_yaml [0.008628s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpguyzkeey' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{5} tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist [0.007537s] ... ok >{5} tests.unit.core.test_config.TestInit.test_settings [0.001005s] ... ok >{5} tests.unit.core.test_context.ContextTests.test_get_call_arg_at_position [0.000287s] ... ok >{5} tests.unit.core.test_context.ContextTests.test_repr [0.000113s] ... ok >{5} tests.unit.core.test_issue.IssueTests.test_issue_as_dict [0.000157s] ... ok >{5} tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob [0.001177s] ... ok >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpe1iu5orb/_temp_output.txt >{5} tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format [0.001125s] ... ok >{5} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include [0.000991s] ... ok >{5} tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one [0.000987s] ... ok >{5} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingend [0.005788s] ... ok >{5} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_syms [0.005400s] ... ok >{5} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingend [0.005395s] ... ok >{5} tests.unit.core.test_util.UtilTests.test_linerange [0.005843s] ... ok >[csv] INFO CSV output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpoip1iyxq >{5} tests.unit.formatters.test_csv.CsvFormatterTests.test_report [0.001323s] ... ok >{5} tests.unit.formatters.test_text.TextFormatterTests.test_output_issue [0.000486s] ... ok >[ INFO ] No output format specified, using terminal >[ INFO ] Got current commit: [a607974101589e4f067ff5c75a515b4ff2334887 master] >[ INFO ] Got parent commit: [19d678f6ef9dc881b868ea5c222fd2f6fa2ee028 master~1] >[ INFO ] Getting Bandit baseline results >[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp4u6l_6wl'] >Output: None > >[ INFO ] Comparing Bandit results to baseline >[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp4u6l_6wl'] >Output: None > >{4} tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error [0.231988s] ... ok >[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[main] INFO Using ini file for excluded paths >[main] INFO Using ini file for skipped tests >[main] INFO Using ini file for selected tests >[main] INFO Using command line arg for selected targets >[main] INFO profile include tests: None >[main] INFO profile exclude tests: None >[main] INFO cli include tests: some_test >[main] INFO cli exclude tests: skip_test >{4} tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options [0.007640s] ... ok >[config] WARNING Config file '/var/tmp/portage/dev-python/bandit-1.6.2/temp/tmpoffga5nc' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. >[config] WARNING Legacy blacklist data found in config, overriding data plugins >{4} tests.unit.core.test_config.TestConfigCompat.test_converted_exclude [0.007782s] ... ok >{4} tests.unit.core.test_issue.IssueTests.test_matches_issue [0.000187s] ... ok >{4} tests.unit.core.test_manager.ManagerTests.test_create_manager [0.000847s] ... ok >[text] INFO Text output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp_6d3zl6k/_temp_output >{4} tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format [0.001555s] ... ok >{4} tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json [0.001258s] ... ok >{4} tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt [0.002305s] ... ok >{4} tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_typical [0.005508s] ... ok >[utils] WARNING Cannot resolve file path for module sys >{4} tests.unit.core.test_util.UtilTests.test_path_for_function_no_file [0.005592s] ... ok >[utils] WARNING Cannot resolve file where 1 is defined >{4} tests.unit.core.test_util.UtilTests.test_path_for_function_no_module [0.005725s] ... ok >[html] INFO HTML output written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp3xvo0lcu >{4} tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping [0.001692s] ... ok >[screen] INFO Screen formatter output was not written to file: /var/tmp/portage/dev-python/bandit-1.6.2/temp/tmp0a9p_zcm, consider '-f txt' >{4} tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline [0.001669s] ... ok >None >[95mRun started:2020-07-18 12:19:43.676067[0m >[95m >Test results:[0m >ISSUE_OUTPUT_TEXT >-------------------------------------------------- >ISSUE_OUTPUT_TEXT > >-- Candidate Issues -- >ISSUE_OUTPUT_TEXT > > >ISSUE_OUTPUT_TEXT > > >-------------------------------------------------- >[95m >Code scanned:[0m > Total lines of code: 0 > Total lines skipped (#nosec): 0 >[95m >Run metrics:[0m > Total issues (by severity): > Undefined: 0 > Low: 0 > Medium: 0 > High: 0 > Total issues (by confidence): > Undefined: 0 > Low: 0 > Medium: 0 > High: 0 >[95mFiles skipped (0):[0m > >============================== >Failed 19 tests - output below: >============================== > >tests.functional.test_baseline.BaselineFunctionalTests.test_existing_and_new_candidates >--------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 194, in test_existing_and_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_new_candidates_include_nosec_only_nosecs >---------------------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 249, in test_new_candidates_include_nosec_only_nosecs' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_no_existing_with_new_candidates >------------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 163, in test_no_existing_with_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_no_new_candidates >----------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 118, in test_no_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_new_candidates_include_nosec_new_nosecs >--------------------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 282, in test_new_candidates_include_nosec_new_nosecs' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_no_existing_no_new_candidates >----------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 140, in test_no_existing_no_new_candidates' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_baseline.BaselineFunctionalTests.test_no_new_candidates_include_nosec >------------------------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 224, in test_no_new_candidates_include_nosec' > b' baseline_report_files))' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_baseline.py", line 101, in _create_baseline' > b' stderr=subprocess.PIPE, close_fds=True)' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_example_imports >--------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 124, in test_example_imports' > b" (retcode, output) = self._test_example(['bandit', ], ['imports.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_example_nonsense2 >----------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 112, in test_example_nonsense2' > b" ['bandit', ], ['nonsense2.py', ]" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_help_arg >-------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 66, in test_help_arg' > b" (retcode, output) = self._test_runtime(['bandit', '-h'])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_no_arguments >------------------------------------------------------------ > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 42, in test_no_arguments' > b" (retcode, output) = self._test_runtime(['bandit', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_example_nonsense >---------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 105, in test_example_nonsense' > b" (retcode, output) = self._test_example(['bandit', ], ['nonsense.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_example_nonexistent >------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 91, in test_example_nonexistent' > b" ['bandit', ], ['nonexistent.py', ]" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_example_okay >------------------------------------------------------------ > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 98, in test_example_okay' > b" (retcode, output) = self._test_example(['bandit', ], ['okay.py', ])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 39, in _test_example' > b' return self._test_runtime(cmdlist)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_help_in_readme >-------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 78, in test_help_in_readme' > b" (retcode, output) = self._test_runtime(['bandit', '-h'])" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_nonexistent_config >------------------------------------------------------------------ > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 60, in test_nonexistent_config' > b" 'bandit', '-c', 'nonexistent.yml', 'xx.py'" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.functional.test_runtime.RuntimeTests.test_piped_input >----------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 48, in test_piped_input' > b" (retcode, output) = self._test_runtime(['bandit', '-'], infile)" > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/functional/test_runtime.py", line 30, in _test_runtime' > b' close_fds=True' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit': 'bandit'" > b'' > >tests.unit.formatters.test_yaml.YamlFormatterTests.test_report >-------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/usr/lib/python3.7/site-packages/mock/mock.py", line 1330, in patched' > b' return func(*args, **keywargs)' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/unit/formatters/test_yaml.py", line 83, in test_report' > b' data = yaml.load(f.read())' > b' File "/usr/lib/python3.7/site-packages/yaml/__init__.py", line 109, in load' > b' raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")' > b'RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348' > b'' > >tests.unit.cli.test_baseline.BanditBaselineToolTests.test_bandit_baseline >------------------------------------------------------------------------- > >Captured traceback: >~~~~~~~~~~~~~~~~~~~ > b'Traceback (most recent call last):' > b' File "/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2/tests/unit/cli/test_baseline.py", line 121, in test_bandit_baseline' > b' subprocess.call(baseline_command))' > b' File "/usr/lib/python3.7/subprocess.py", line 339, in call' > b' with Popen(*popenargs, **kwargs) as p:' > b' File "/usr/lib/python3.7/subprocess.py", line 800, in __init__' > b' restore_signals, start_new_session)' > b' File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child' > b' raise child_exception_type(errno_num, err_msg, err_filename)' > b"FileNotFoundError: [Errno 2] No such file or directory: 'bandit-baseline': 'bandit-baseline'" > b'' > > >====== >Totals >====== >Ran: 246 tests in 1.7194 sec. > - Passed: 227 > - Skipped: 0 > - Expected Fail: 0 > - Unexpected Success: 0 > - Failed: 19 >Sum of execute time for each test: 3.5858 sec. > >============== >Worker Balance >============== > - Worker 0 (31 tests) => 0:00:00.428107 > - Worker 1 (31 tests) => 0:00:00.193084 > - Worker 2 (31 tests) => 0:00:00.315938 > - Worker 3 (31 tests) => 0:00:00.573152 > - Worker 4 (31 tests) => 0:00:00.889006 > - Worker 5 (31 tests) => 0:00:00.617907 > - Worker 6 (30 tests) => 0:00:00.301500 > - Worker 7 (30 tests) => 0:00:00.340914 > [31;01m*[0m ERROR: dev-python/bandit-1.6.2::gentoo failed (test phase): > [31;01m*[0m (no error message) > [31;01m*[0m > [31;01m*[0m Call stack: > [31;01m*[0m ebuild.sh, line 125: Called src_test > [31;01m*[0m environment, line 2909: Called distutils-r1_src_test > [31;01m*[0m environment, line 1244: Called _distutils-r1_run_foreach_impl 'python_test' > [31;01m*[0m environment, line 440: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2523: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2026: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2024: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 832: Called distutils-r1_run_phase 'python_test' > [31;01m*[0m environment, line 1181: Called python_test > [31;01m*[0m environment, line 2869: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m stestr run || die > [31;01m*[0m > [31;01m*[0m If you need support, post the output of `emerge --info '=dev-python/bandit-1.6.2::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/bandit-1.6.2::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-python/bandit-1.6.2/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/bandit-1.6.2/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2' > [31;01m*[0m S: '/var/tmp/portage/dev-python/bandit-1.6.2/work/bandit-1.6.2'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 733136
: 649762