Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 768560 Details for
Bug 836685
dev-util/cookiecutter-1.7.3 fails test - E assert (Missing end of comment tag\n\n File .../syntax_error.txt, line 1\n\n I eat {{ s
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-util:cookiecutter-1.7.3:20220403-044429.log
dev-util:cookiecutter-1.7.3:20220403-044429.log (text/plain), 41.22 KB, created by
Toralf Förster
on 2022-04-03 09:13:38 UTC
(
hide
)
Description:
dev-util:cookiecutter-1.7.3:20220403-044429.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-04-03 09:13:38 UTC
Size:
41.22 KB
patch
obsolete
> * Package: dev-util/cookiecutter-1.7.3 > * Repository: gentoo > * Maintainer: cedk@gentoo.org andrewammerlaan@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_9 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking cookiecutter-1.7.3.tar.gz to /var/tmp/portage/dev-util/cookiecutter-1.7.3/work >>>> Source unpacked in /var/tmp/portage/dev-util/cookiecutter-1.7.3/work >>>> Preparing source in /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3 ... > * Applying test_cli-1.7.2.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3 ... > * python3_9: running distutils-r1_run_phase distutils-r1_python_compile >python3.9 setup.py build -j 4 >running build >running build_py >creating /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/zipfile.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/vcs.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/utils.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/repository.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/replay.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/prompt.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/main.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/log.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/hooks.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/generate.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/find.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/extensions.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/exceptions.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/environment.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/config.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/cli.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/__main__.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >copying cookiecutter/__init__.py -> /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3-python3_9/lib/cookiecutter >running egg_info >creating cookiecutter.egg-info >writing cookiecutter.egg-info/PKG-INFO >writing dependency_links to cookiecutter.egg-info/dependency_links.txt >writing entry points to cookiecutter.egg-info/entry_points.txt >writing requirements to cookiecutter.egg-info/requires.txt >writing top-level names to cookiecutter.egg-info/top_level.txt >writing manifest file 'cookiecutter.egg-info/SOURCES.txt' >listing git files failed - pretending there aren't any >reading manifest file 'cookiecutter.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >warning: no files found matching 'AUTHORS.rst' >warning: no files found matching 'CONTRIBUTING.rst' >warning: no files found matching 'HISTORY.rst' >warning: no files found matching 'README.rst' >warning: no previously-included files matching '__pycache__' found under directory '*' >warning: no previously-included files matching '*.py[co]' found under directory '*' >adding license file 'LICENSE' >adding license file 'AUTHORS.md' >writing manifest file 'cookiecutter.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > > * Checking whether python3_10 is suitable ... > * >=dev-lang/python-3.10.0_p1-r1:3.10 ... > [ ok ] > * python_check_deps ... > [ ok ] > * Using python3.10 in global scope > * python3_10: running distutils-r1_run_phase python_compile_all >>>> Source compiled. >>>> Test phase: dev-util/cookiecutter-1.7.3 > * python3_9: running distutils-r1_run_phase python_test >python3.9 -m pytest -vv -ra -l -Wdefault --color=no -p no:cov -p no:flake8 -p no:flakes -p no:pylint -o addopts= >============================= test session starts ============================== >platform linux -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0 -- /usr/bin/python3.9 >cachedir: .pytest_cache >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3, configfile: setup.cfg, testpaths: tests >plugins: case-1.5.3, forked-1.4.0, xdist-2.5.0, anyio-3.5.0, pylama-8.3.8, hypothesis-6.41.0, pkgcore-0.12.10, expect-1.1.0, mock-3.7.0 >collecting ... collected 276 items > >tests/test_abort_generate_on_hook_error.py::test_hooks_raises_errors[pre_gen_hook_raises_error] PASSED [ 0%] >tests/test_abort_generate_on_hook_error.py::test_hooks_raises_errors[post_gen_hook_raises_error] PASSED [ 0%] >tests/test_cli.py::test_cli_version[-V] PASSED [ 1%] >tests/test_cli.py::test_cli_version[--version] PASSED [ 1%] >tests/test_cli.py::test_cli_error_on_existing_output_directory PASSED [ 1%] >tests/test_cli.py::test_cli PASSED [ 2%] >tests/test_cli.py::test_cli_verbose PASSED [ 2%] >tests/test_cli.py::test_cli_replay PASSED [ 2%] >tests/test_cli.py::test_cli_exit_on_noinput_and_replay PASSED [ 3%] >tests/test_cli.py::test_run_cookiecutter_on_overwrite_if_exists_and_replay[-f] PASSED [ 3%] >tests/test_cli.py::test_run_cookiecutter_on_overwrite_if_exists_and_replay[--overwrite-if-exists] PASSED [ 3%] >tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exist[-f] PASSED [ 4%] >tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exist[--overwrite-if-exists] PASSED [ 4%] >tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_exists[-f] PASSED [ 5%] >tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_exists[--overwrite-if-exists] PASSED [ 5%] >tests/test_cli.py::test_cli_output_dir[-o] PASSED [ 5%] >tests/test_cli.py::test_cli_output_dir[--output-dir] PASSED [ 6%] >tests/test_cli.py::test_cli_help[-h] PASSED [ 6%] >tests/test_cli.py::test_cli_help[--help] PASSED [ 6%] >tests/test_cli.py::test_cli_help[help] PASSED [ 7%] >tests/test_cli.py::test_user_config PASSED [ 7%] >tests/test_cli.py::test_default_user_config_overwrite PASSED [ 7%] >tests/test_cli.py::test_default_user_config PASSED [ 8%] >tests/test_cli.py::test_echo_undefined_variable_error PASSED [ 8%] >tests/test_cli.py::test_echo_unknown_extension_error PASSED [ 9%] >tests/test_cli.py::test_cli_extra_context PASSED [ 9%] >tests/test_cli.py::test_cli_extra_context_invalid_format PASSED [ 9%] >tests/test_cli.py::test_debug_file_non_verbose PASSED [ 10%] >tests/test_cli.py::test_debug_file_verbose PASSED [ 10%] >tests/test_cli.py::test_directory_repo PASSED [ 10%] >tests/test_cookiecutter_invocation.py::test_should_raise_error_without_template_arg PASSED [ 11%] >tests/test_cookiecutter_invocation.py::test_should_invoke_main PASSED [ 11%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_project_dir[tests/fake-repo-pre/] PASSED [ 11%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_project_dir[tests/fake-repo-pre] PASSED [ 12%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_extra_context PASSED [ 12%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_templated_context PASSED [ 13%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_rendered_file PASSED [ 13%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_dict_values_in_context PASSED [ 13%] >tests/test_cookiecutter_local_no_input.py::test_cookiecutter_template_cleanup PASSED [ 14%] >tests/test_cookiecutter_local_with_input.py::test_cookiecutter_local_with_input PASSED [ 14%] >tests/test_cookiecutter_local_with_input.py::test_cookiecutter_input_extra_context PASSED [ 14%] >tests/test_custom_extensions_in_hooks.py::test_hook_with_extension[pre_gen_hook] PASSED [ 15%] >tests/test_custom_extensions_in_hooks.py::test_hook_with_extension[post_gen_hook] PASSED [ 15%] >tests/test_default_extensions.py::test_jinja2_time_extension PASSED [ 15%] >tests/test_default_extensions.py::test_jinja2_slugify_extension PASSED [ 16%] >tests/test_environment.py::test_env_should_raise_for_unknown_extension PASSED [ 16%] >tests/test_environment.py::test_env_should_come_with_default_extensions PASSED [ 17%] >tests/test_exceptions.py::test_undefined_variable_to_str PASSED [ 17%] >tests/test_find.py::test_find_template[fake-repo-pre] PASSED [ 17%] >tests/test_find.py::test_find_template[fake-repo-pre2] PASSED [ 18%] >tests/test_generate_context.py::test_generate_context[input_params0-expected_context0] PASSED [ 18%] >tests/test_generate_context.py::test_generate_context[input_params1-expected_context1] PASSED [ 18%] >tests/test_generate_context.py::test_generate_context[input_params2-expected_context2] PASSED [ 19%] >tests/test_generate_context.py::test_generate_context[input_params3-expected_context3] PASSED [ 19%] >tests/test_generate_context.py::test_generate_context_with_json_decoding_error PASSED [ 19%] >tests/test_generate_context.py::test_default_context_replacement_in_generate_context PASSED [ 20%] >tests/test_generate_context.py::test_apply_overwrites_does_include_unused_variables PASSED [ 20%] >tests/test_generate_context.py::test_apply_overwrites_sets_non_list_value PASSED [ 21%] >tests/test_generate_context.py::test_apply_overwrites_does_not_modify_choices_for_invalid_overwrite PASSED [ 21%] >tests/test_generate_context.py::test_apply_overwrites_sets_default_for_choice_variable PASSED [ 21%] >tests/test_generate_copy_without_render.py::test_generate_copy_without_render_extensions PASSED [ 22%] >tests/test_generate_file.py::test_generate_file PASSED [ 22%] >tests/test_generate_file.py::test_generate_file_jsonify_filter PASSED [ 22%] >tests/test_generate_file.py::test_generate_file_random_ascii_string[True-10] PASSED [ 23%] >tests/test_generate_file.py::test_generate_file_random_ascii_string[True-40] PASSED [ 23%] >tests/test_generate_file.py::test_generate_file_random_ascii_string[False-10] PASSED [ 23%] >tests/test_generate_file.py::test_generate_file_random_ascii_string[False-40] PASSED [ 24%] >tests/test_generate_file.py::test_generate_file_with_true_condition PASSED [ 24%] >tests/test_generate_file.py::test_generate_file_with_false_condition PASSED [ 25%] >tests/test_generate_file.py::test_generate_file_verbose_template_syntax_error FAILED [ 25%] >tests/test_generate_files.py::test_ensure_dir_is_templated_raises[] PASSED [ 25%] >tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{foo}] PASSED [ 26%] >tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{{foo] PASSED [ 26%] >tests/test_generate_files.py::test_ensure_dir_is_templated_raises[bar}}] PASSED [ 26%] >tests/test_generate_files.py::test_generate_files_nontemplated_exception PASSED [ 27%] >tests/test_generate_files.py::test_generate_files PASSED [ 27%] >tests/test_generate_files.py::test_generate_files_with_trailing_newline PASSED [ 27%] >tests/test_generate_files.py::test_generate_files_binaries PASSED [ 28%] >tests/test_generate_files.py::test_generate_files_absolute_path PASSED [ 28%] >tests/test_generate_files.py::test_generate_files_output_dir PASSED [ 28%] >tests/test_generate_files.py::test_generate_files_permissions PASSED [ 29%] >tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists_with_skip_if_file_exists PASSED [ 29%] >tests/test_generate_files.py::test_generate_files_with_skip_if_file_exists PASSED [ 30%] >tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists PASSED [ 30%] >tests/test_generate_files.py::test_raise_undefined_variable_file_name PASSED [ 30%] >tests/test_generate_files.py::test_raise_undefined_variable_file_name_existing_project PASSED [ 31%] >tests/test_generate_files.py::test_raise_undefined_variable_file_content PASSED [ 31%] >tests/test_generate_files.py::test_raise_undefined_variable_dir_name PASSED [ 31%] >tests/test_generate_files.py::test_raise_undefined_variable_dir_name_existing_project PASSED [ 32%] >tests/test_generate_files.py::test_raise_undefined_variable_project_dir PASSED [ 32%] >tests/test_generate_hooks.py::test_ignore_hooks_dirs PASSED [ 32%] >tests/test_generate_hooks.py::test_run_python_hooks PASSED [ 33%] >tests/test_generate_hooks.py::test_run_python_hooks_cwd PASSED [ 33%] >tests/test_generate_hooks.py::test_empty_hooks PASSED [ 34%] >tests/test_generate_hooks.py::test_oserror_hooks PASSED [ 34%] >tests/test_generate_hooks.py::test_run_failing_hook_removes_output_directory PASSED [ 34%] >tests/test_generate_hooks.py::test_run_failing_hook_preserves_existing_output_directory PASSED [ 35%] >tests/test_generate_hooks.py::test_run_shell_hooks PASSED [ 35%] >tests/test_generate_hooks.py::test_run_shell_hooks_win SKIPPED (Win only test) [ 35%] >tests/test_get_config.py::test_merge_configs PASSED [ 36%] >tests/test_get_config.py::test_get_config PASSED [ 36%] >tests/test_get_config.py::test_get_config_does_not_exist PASSED [ 36%] >tests/test_get_config.py::test_invalid_config PASSED [ 37%] >tests/test_get_config.py::test_get_config_with_defaults PASSED [ 37%] >tests/test_get_user_config.py::test_get_user_config_valid PASSED [ 38%] >tests/test_get_user_config.py::test_get_user_config_invalid PASSED [ 38%] >tests/test_get_user_config.py::test_get_user_config_nonexistent PASSED [ 38%] >tests/test_get_user_config.py::test_specify_config_path PASSED [ 39%] >tests/test_get_user_config.py::test_default_config_path PASSED [ 39%] >tests/test_get_user_config.py::test_default_config_from_env_variable PASSED [ 39%] >tests/test_get_user_config.py::test_force_default_config PASSED [ 40%] >tests/test_get_user_config.py::test_expand_user_for_directories_in_config PASSED [ 40%] >tests/test_get_user_config.py::test_expand_vars_for_directories_in_config PASSED [ 40%] >tests/test_hooks.py::TestFindHooks::test_find_hook PASSED [ 41%] >tests/test_hooks.py::TestFindHooks::test_no_hooks PASSED [ 41%] >tests/test_hooks.py::TestFindHooks::test_unknown_hooks_dir PASSED [ 42%] >tests/test_hooks.py::TestFindHooks::test_hook_not_found PASSED [ 42%] >tests/test_hooks.py::TestExternalHooks::test_run_script PASSED [ 42%] >tests/test_hooks.py::TestExternalHooks::test_run_script_cwd PASSED [ 43%] >tests/test_hooks.py::TestExternalHooks::test_run_script_with_context PASSED [ 43%] >tests/test_hooks.py::TestExternalHooks::test_run_hook PASSED [ 43%] >tests/test_hooks.py::TestExternalHooks::test_run_failing_hook PASSED [ 44%] >tests/test_hooks.py::test_ignore_hook_backup_files PASSED [ 44%] >tests/test_log.py::test_info_stdout_logging PASSED [ 44%] >tests/test_log.py::test_debug_stdout_logging PASSED [ 45%] >tests/test_log.py::test_debug_file_logging PASSED [ 45%] >tests/test_main.py::test_replay_dump_template_name PASSED [ 46%] >tests/test_main.py::test_replay_load_template_name PASSED [ 46%] >tests/test_output_folder.py::test_output_folder PASSED [ 46%] >tests/test_output_folder.py::test_exception_when_output_folder_exists PASSED [ 47%] >tests/test_preferred_encoding.py::test_not_ascii PASSED [ 47%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str[1-1] PASSED [ 47%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str[True-True] PASSED [ 48%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str[foo-foo] PASSED [ 48%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str[{{cookiecutter.project}}-foobar] PASSED [ 48%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str[None-None] PASSED [ 49%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var0-rendered_var0] PASSED [ 49%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var1-rendered_var1] PASSED [ 50%] >tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var2-rendered_var2] PASSED [ 50%] >tests/test_prompt.py::TestPrompt::test_prompt_for_config[ASCII default prompt/input] PASSED [ 50%] >tests/test_prompt.py::TestPrompt::test_prompt_for_config[Unicode default prompt/input] PASSED [ 51%] >tests/test_prompt.py::TestPrompt::test_prompt_for_config_dict PASSED [ 51%] >tests/test_prompt.py::TestPrompt::test_should_render_dict PASSED [ 51%] >tests/test_prompt.py::TestPrompt::test_should_render_deep_dict PASSED [ 52%] >tests/test_prompt.py::TestPrompt::test_prompt_for_templated_config PASSED [ 52%] >tests/test_prompt.py::TestPrompt::test_dont_prompt_for_private_context_var PASSED [ 52%] >tests/test_prompt.py::TestPrompt::test_should_not_render_private_variables PASSED [ 53%] >tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_choice PASSED [ 53%] >tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_variable PASSED [ 53%] >tests/test_prompt.py::TestReadUserChoice::test_should_render_choices PASSED [ 54%] >tests/test_prompt.py::TestPromptChoiceForConfig::test_should_return_first_option_if_no_input PASSED [ 54%] >tests/test_prompt.py::TestPromptChoiceForConfig::test_should_read_user_choice PASSED [ 55%] >tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict] PASSED [ 55%] >tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with choices] PASSED [ 55%] >tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with dict_key] PASSED [ 56%] >tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with key_value] PASSED [ 56%] >tests/test_read_repo_password.py::test_click_invocation PASSED [ 56%] >tests/test_read_user_choice.py::test_click_invocation[1-hello] PASSED [ 57%] >tests/test_read_user_choice.py::test_click_invocation[2-world] PASSED [ 57%] >tests/test_read_user_choice.py::test_click_invocation[3-foo] PASSED [ 57%] >tests/test_read_user_choice.py::test_click_invocation[4-bar] PASSED [ 58%] >tests/test_read_user_choice.py::test_raise_if_options_is_not_a_non_empty_list PASSED [ 58%] >tests/test_read_user_dict.py::test_process_json_invalid_json PASSED [ 59%] >tests/test_read_user_dict.py::test_process_json_non_dict PASSED [ 59%] >tests/test_read_user_dict.py::test_process_json_valid_json PASSED [ 59%] >tests/test_read_user_dict.py::test_process_json_deep_dict PASSED [ 60%] >tests/test_read_user_dict.py::test_should_raise_type_error PASSED [ 60%] >tests/test_read_user_dict.py::test_should_call_prompt_with_process_json PASSED [ 60%] >tests/test_read_user_dict.py::test_read_user_dict_default_value PASSED [ 61%] >tests/test_read_user_variable.py::test_click_invocation PASSED [ 61%] >tests/test_read_user_yes_no.py::test_click_invocation PASSED [ 61%] >tests/test_repo_not_found.py::test_should_raise_error_if_repo_does_not_exist PASSED [ 62%] >tests/test_specify_output_dir.py::test_api_invocation PASSED [ 62%] >tests/test_specify_output_dir.py::test_default_output_dir PASSED [ 63%] >tests/test_utils.py::test_rmtree PASSED [ 63%] >tests/test_utils.py::test_make_sure_path_exists PASSED [ 63%] >tests/test_utils.py::test_workin PASSED [ 64%] >tests/test_utils.py::test_prompt_should_ask_and_rm_repo_dir PASSED [ 64%] >tests/test_utils.py::test_prompt_should_ask_and_exit_on_user_no_answer PASSED [ 64%] >tests/test_utils.py::test_prompt_should_ask_and_rm_repo_file PASSED [ 65%] >tests/test_utils.py::test_prompt_should_ask_and_keep_repo_on_no_reuse PASSED [ 65%] >tests/test_utils.py::test_prompt_should_ask_and_keep_repo_on_reuse PASSED [ 65%] >tests/test_utils.py::test_prompt_should_not_ask_if_no_input_and_rm_repo_dir PASSED [ 66%] >tests/test_utils.py::test_prompt_should_not_ask_if_no_input_and_rm_repo_file PASSED [ 66%] >tests/replay/test_dump.py::test_type_error_if_no_template_name PASSED [ 67%] >tests/replay/test_dump.py::test_type_error_if_not_dict_context PASSED [ 67%] >tests/replay/test_dump.py::test_value_error_if_key_missing_in_context PASSED [ 67%] >tests/replay/test_dump.py::test_ioerror_if_replay_dir_creation_fails PASSED [ 68%] >tests/replay/test_dump.py::test_run_json_dump PASSED [ 68%] >tests/replay/test_load.py::test_type_error_if_no_template_name PASSED [ 68%] >tests/replay/test_load.py::test_value_error_if_key_missing_in_context PASSED [ 69%] >tests/replay/test_load.py::test_io_error_if_no_replay_file PASSED [ 69%] >tests/replay/test_load.py::test_run_json_load PASSED [ 69%] >tests/replay/test_replay.py::test_get_replay_file_name PASSED [ 70%] >tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs0] PASSED [ 70%] >tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs1] PASSED [ 71%] >tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs2] PASSED [ 71%] >tests/replay/test_replay.py::test_main_does_not_invoke_dump_but_load PASSED [ 71%] >tests/replay/test_replay.py::test_main_does_not_invoke_load_but_dump PASSED [ 72%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Simple expansion] PASSED [ 72%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Skip expansion (expansion not an abbreviation)] PASSED [ 72%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Expansion prefix] PASSED [ 73%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[expansion_override_builtin] PASSED [ 73%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[expansion_prefix_ignores_suffix] PASSED [ 73%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (github)] PASSED [ 74%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (gitlab)] PASSED [ 74%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (bitbucket)] PASSED [ 75%] >tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion_prefix_not_0_in_braces PASSED [ 75%] >tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[/path/to/zipfile.zip-False] PASSED [ 75%] >tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[https://example.com/path/to/zipfile.zip-True] PASSED [ 76%] >tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[http://example.com/path/to/zipfile.zip-True] PASSED [ 76%] >tests/repository/test_determine_repo_dir_clones_repo.py::test_repository_url_should_clone PASSED [ 76%] >tests/repository/test_determine_repo_dir_clones_repo.py::test_repository_url_with_no_context_file PASSED [ 77%] >tests/repository/test_determine_repo_dir_finds_existing_cookiecutter.py::test_should_find_existing_cookiecutter PASSED [ 77%] >tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_should_find_existing_cookiecutter PASSED [ 77%] >tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_local_repo_typo PASSED [ 78%] >tests/repository/test_determine_repository_should_use_local_repo.py::test_finds_local_repo PASSED [ 78%] >tests/repository/test_determine_repository_should_use_local_repo.py::test_local_repo_with_no_context_raises PASSED [ 78%] >tests/repository/test_determine_repository_should_use_local_repo.py::test_local_repo_typo PASSED [ 79%] >tests/repository/test_is_repo_url.py::test_is_zip_file[/path/to/zipfile.zip] PASSED [ 79%] >tests/repository/test_is_repo_url.py::test_is_zip_file[https://example.com/path/to/zipfile.zip] PASSED [ 80%] >tests/repository/test_is_repo_url.py::test_is_zip_file[http://example.com/path/to/zipfile.zip] PASSED [ 80%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[gitolite@server:team/repo] PASSED [ 80%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[git@github.com:audreyr/cookiecutter.git] PASSED [ 81%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[https://github.com/audreyr/cookiecutter.git] PASSED [ 81%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[git+https://private.com/gitrepo] PASSED [ 81%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[hg+https://private.com/mercurialrepo] PASSED [ 82%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[https://bitbucket.org/pokoli/cookiecutter.hg] PASSED [ 82%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[file://server/path/to/repo.git] PASSED [ 82%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[/audreyr/cookiecutter.git] PASSED [ 83%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[/home/audreyr/cookiecutter] PASSED [ 83%] >tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[c:\\users\\foo\\appdata\\local\\temp\\1\\pytest-0\\test_default_output_dir0\\template] PASSED [ 84%] >tests/repository/test_is_repo_url.py::test_expand_abbreviations PASSED [ 84%] >tests/repository/test_repository_has_cookiecutter_json.py::test_valid_repository PASSED [ 84%] >tests/repository/test_repository_has_cookiecutter_json.py::test_invalid_repository[tests/fake-repo-bad] PASSED [ 85%] >tests/repository/test_repository_has_cookiecutter_json.py::test_invalid_repository[tests/unknown-repo] PASSED [ 85%] >tests/vcs/test_clone.py::test_clone_should_raise_if_vcs_not_installed PASSED [ 85%] >tests/vcs/test_clone.py::test_clone_should_rstrip_trailing_slash_in_repo_url PASSED [ 86%] >tests/vcs/test_clone.py::test_clone_should_abort_if_user_does_not_want_to_reclone PASSED [ 86%] >tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[git-https://github.com/hello/world.git-world] PASSED [ 86%] >tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[hg-https://bitbucket.org/foo/bar-bar] PASSED [ 87%] >tests/vcs/test_clone.py::test_clone_handles_repo_typo[fatal: repository 'https://github.com/hackebro/cookiedozer' not found] PASSED [ 87%] >tests/vcs/test_clone.py::test_clone_handles_repo_typo[hg: abort: HTTP Error 404: Not Found] PASSED [ 88%] >tests/vcs/test_clone.py::test_clone_handles_branch_typo[error: pathspec 'unknown_branch' did not match any file(s) known to git] PASSED [ 88%] >tests/vcs/test_clone.py::test_clone_handles_branch_typo[hg: abort: unknown revision 'unknown_branch'!] PASSED [ 88%] >tests/vcs/test_clone.py::test_clone_unknown_subprocess_error PASSED [ 89%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[git+https://github.com/pytest-dev/cookiecutter-pytest-plugin.git-git-https://github.com/pytest-dev/cookiecutter-pytest-plugin.git] PASSED [ 89%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[hg+https://bitbucket.org/foo/bar.hg-hg-https://bitbucket.org/foo/bar.hg] PASSED [ 89%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/pytest-dev/cookiecutter-pytest-plugin.git-git-https://github.com/pytest-dev/cookiecutter-pytest-plugin.git] PASSED [ 90%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[https://bitbucket.org/foo/bar.hg-hg-https://bitbucket.org/foo/bar.hg] PASSED [ 90%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/audreyr/cookiecutter-pypackage.git-git-https://github.com/audreyr/cookiecutter-pypackage.git] PASSED [ 90%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/audreyr/cookiecutter-pypackage-git-https://github.com/audreyr/cookiecutter-pypackage] PASSED [ 91%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git-git-git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git] PASSED [ 91%] >tests/vcs/test_identify_repo.py::test_identify_known_repo[https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket-hg-https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket] PASSED [ 92%] >tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+git] PASSED [ 92%] >tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+hg] PASSED [ 92%] >tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+bar] PASSED [ 93%] >tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foobar] PASSED [ 93%] >tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[http://norepotypespecified.com] PASSED [ 93%] >tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[-False] PASSED [ 94%] >tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[None-False] PASSED [ 94%] >tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[False-False] PASSED [ 94%] >tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[/usr/local/bin/git-True] PASSED [ 95%] >tests/zipfile/test_unzip.py::test_unzip_local_file PASSED [ 95%] >tests/zipfile/test_unzip.py::test_unzip_protected_local_file_environment_password PASSED [ 96%] >tests/zipfile/test_unzip.py::test_unzip_protected_local_file_bad_environment_password PASSED [ 96%] >tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_password_with_noinput PASSED [ 96%] >tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_password PASSED [ 97%] >tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_bad_password PASSED [ 97%] >tests/zipfile/test_unzip.py::test_empty_zip_file PASSED [ 97%] >tests/zipfile/test_unzip.py::test_non_repo_zip_file PASSED [ 98%] >tests/zipfile/test_unzip.py::test_bad_zip_file PASSED [ 98%] >tests/zipfile/test_unzip.py::test_unzip_url PASSED [ 98%] >tests/zipfile/test_unzip.py::test_unzip_url_existing_cache PASSED [ 99%] >tests/zipfile/test_unzip.py::test_unzip_url_existing_cache_no_input PASSED [ 99%] >tests/zipfile/test_unzip.py::test_unzip_should_abort_if_no_redownload PASSED [100%] > >=================================== FAILURES =================================== >_______________ test_generate_file_verbose_template_syntax_error _______________ > >env = <cookiecutter.environment.StrictEnvironment object at 0x7fa2b8ef5cd0> >expected_msg = 'Missing end of comment tag\n File "./tests/files/syntax_error.txt", line 1\n I eat {{ syntax_error }} {# this comment is not closed}' > > def test_generate_file_verbose_template_syntax_error(env, expected_msg): > """Verify correct exception raised on syntax error in file before generation.""" > with pytest.raises(TemplateSyntaxError) as exception: > generate.generate_file( > project_dir=".", > infile='tests/files/syntax_error.txt', > context={'syntax_error': 'syntax_error'}, > env=env, > ) >> assert str(exception.value) == expected_msg >E assert ('Missing end of comment tag\n'\n ' File "tests/files/syntax_error.txt", line 1\n'\n ' I eat {{ syntax_error }} {# this comment is not closed}') == ('Missing end of comment tag\n'\n ' File "./tests/files/syntax_error.txt", line 1\n'\n ' I eat {{ syntax_error }} {# this comment is not closed}') >E Missing end of comment tag >E - File "./tests/files/syntax_error.txt", line 1 >E ? -- >E + File "tests/files/syntax_error.txt", line 1 >E I eat {{ syntax_error }} {# this comment is not closed} > >env = <cookiecutter.environment.StrictEnvironment object at 0x7fa2b8ef5cd0> >exception = <ExceptionInfo TemplateSyntaxError('Missing end of comment tag') tblen=8> >expected_msg = ('Missing end of comment tag\n' > ' File "./tests/files/syntax_error.txt", line 1\n' > ' I eat {{ syntax_error }} {# this comment is not closed}') > >tests/test_generate_file.py:124: AssertionError >------------------------------ Captured log call ------------------------------- >DEBUG cookiecutter.generate:generate.py:140 Processing file tests/files/syntax_error.txt >DEBUG cookiecutter.generate:generate.py:155 Created file at ./tests/files/syntax_error.txt >DEBUG cookiecutter.generate:generate.py:158 Check tests/files/syntax_error.txt to see if it's a binary >=============================== warnings summary =============================== >tests/test_cli.py::test_debug_file_verbose > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/cookiecutter/log.py:34: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/pytest-of-portage/pytest-0/test_debug_file_non_verbose0/fake-repo.log' mode='a' encoding='UTF-8'> > del logger.handlers[:] > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_cli.py::test_directory_repo > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/cookiecutter/log.py:34: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/pytest-of-portage/pytest-0/test_debug_file_verbose0/fake-repo.log' mode='a' encoding='UTF-8'> > del logger.handlers[:] > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_generate_files.py::test_generate_files > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_generate_files.py:73: ResourceWarning: unclosed file <_io.TextIOWrapper name='inputpizzä/simple.txt' mode='rt' encoding='utf-8'> > simple_text = io.open(simple_file, 'rt', encoding='utf-8').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists_with_skip_if_file_exists > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_generate_files.py:198: ResourceWarning: unclosed file <_io.TextIOWrapper name='inputpizzä/simple.txt' mode='rt' encoding='utf-8'> > simple_text = io.open(simple_file, 'rt', encoding='utf-8').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_generate_files.py::test_generate_files_with_skip_if_file_exists > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_generate_files.py:222: ResourceWarning: unclosed file <_io.TextIOWrapper name='inputpizzä/simple.txt' mode='rt' encoding='utf-8'> > simple_text = io.open(simple_file, 'rt', encoding='utf-8').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_generate_files.py:245: ResourceWarning: unclosed file <_io.TextIOWrapper name='inputpizzä/simple.txt' mode='rt' encoding='utf-8'> > simple_text = io.open(simple_file, 'rt', encoding='utf-8').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_output_folder.py::test_output_folder > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_output_folder.py:40: ResourceWarning: unclosed file <_io.TextIOWrapper name='output_folder/something.txt' mode='r' encoding='UTF-8'> > something2 = open('output_folder/something.txt').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/test_output_folder.py::test_output_folder > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/test_output_folder.py:44: ResourceWarning: unclosed file <_io.TextIOWrapper name='output_folder/folder/in_folder.txt' mode='r' encoding='UTF-8'> > in_folder2 = open('output_folder/folder/in_folder.txt').read() > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/repository/test_determine_repo_dir_finds_existing_cookiecutter.py::test_should_find_existing_cookiecutter > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/repository/test_determine_repo_dir_finds_existing_cookiecutter.py:27: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/pytest-of-portage/pytest-0/user_dir0/cookiecutters/cookiecutter-pytest-plugin/cookiecutter.json' mode='w' encoding='UTF-8'> > io.open(os.path.join(cloned_template_path, 'cookiecutter.json'), 'w') > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_should_find_existing_cookiecutter >tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_local_repo_typo > /var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3/tests/repository/test_determine_repo_dir_finds_subdirectories.py:31: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/pytest-of-portage/pytest-0/user_dir0/cookiecutters/cookiecutter-pytest-plugin/my-dir/cookiecutter.json' mode='w' encoding='UTF-8'> > io.open(os.path.join(subdir_template_path, 'cookiecutter.json'), 'w') > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >=========================== short test summary info ============================ >SKIPPED [1] tests/test_generate_hooks.py:198: Win only test >FAILED tests/test_generate_file.py::test_generate_file_verbose_template_syntax_error >============ 1 failed, 274 passed, 1 skipped, 11 warnings in 3.27s ============= > * ERROR: dev-util/cookiecutter-1.7.3::gentoo failed (test phase): > * pytest failed with python3.9 > * > * Call stack: > * ebuild.sh, line 127: Called src_test > * environment, line 3229: Called distutils-r1_src_test > * environment, line 1540: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 616: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2888: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2464: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2462: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 992: Called distutils-r1_run_phase 'python_test' > * environment, line 1467: Called python_test > * environment, line 3178: Called epytest '-o' 'addopts=' > * environment, line 1975: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-util/cookiecutter-1.7.3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-util/cookiecutter-1.7.3::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-util:cookiecutter-1.7.3:20220403-044429.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-util/cookiecutter-1.7.3/temp/environment'. > * Working directory: '/var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3' > * S: '/var/tmp/portage/dev-util/cookiecutter-1.7.3/work/cookiecutter-1.7.3' >
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 836685
:
768559
| 768560 |
768561
|
768562
|
768563
|
768564
|
768565