* Package: dev-python/sphinx-gallery-0.8.1 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_32 elibc_glibc kernel_linux python_targets_python3_7 test userland_GNU x86 * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking sphinx-gallery-0.8.1.tar.gz to /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work >>> Source unpacked in /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work >>> Preparing source in /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1 ... * python3_7: running distutils-r1_run_phase distutils-r1_python_compile python3.7 setup.py build -j 5 running build running build_py creating /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/scrapers.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/py_source_parser.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/directives.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/sorting.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/gen_gallery.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/utils.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/backreferences.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/load_style.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/docs_resolv.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/downloads.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/sphinx_compatibility.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/notebook.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/binder.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/__init__.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery copying sphinx_gallery/gen_rst.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery creating /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_sphinx_compatibility.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_scrapers.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_load_style.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/conftest.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_gen_gallery.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_gen_rst.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_docs_resolv.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_utils.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_backreferences.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_py_source_parser.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_binder.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_full.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_notebook.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/test_sorting.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests copying sphinx_gallery/tests/__init__.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/tests creating /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/gallery.css -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/gallery-binder.css -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/gallery-dataframe.css -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/no_image.png -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/broken_example.png -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static copying sphinx_gallery/_static/binder_badge_logo.svg -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/lib/sphinx_gallery/_static warning: build_py: byte-compiling is disabled, skipping. running build_scripts creating /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/scripts copying bin/copy_sphinxgallery.sh -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/scripts copying and adjusting bin/sphx_glr_python_to_jupyter.py -> /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/scripts changing mode of /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1-python3_7/scripts/sphx_glr_python_to_jupyter.py from 644 to 755 >>> Source compiled. >>> Test phase: dev-python/sphinx-gallery-0.8.1 * python3_7: running distutils-r1_run_phase python_test ================================================= test session starts ================================================== platform linux -- Python 3.7.9, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.7 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1, configfile: setup.cfg collecting ... collected 162 items sphinx_gallery/tests/test_backreferences.py::test_thumbnail_div[<"test">-<"test">-False] PASSED [ 0%] sphinx_gallery/tests/test_backreferences.py::test_thumbnail_div[test formating-test formating-True] PASSED [ 1%] sphinx_gallery/tests/test_backreferences.py::test_thumbnail_div[1 :class:`~a.b`. 2 :class:`a.b` 3 :ref:`whatever `-1 b. 2 a.b 3 better name-False] PASSED [ 1%] sphinx_gallery/tests/test_backreferences.py::test_thumbnail_div[use :meth:`mne.io.Raw.plot_psd` to-use mne.io.Raw.plot_psd to-False] PASSED [ 2%] sphinx_gallery/tests/test_backreferences.py::test_thumbnail_div[`this` and ``that``; and `these things` and ``those things``-this and that; and these things and those things-False] PASSED [ 3%] sphinx_gallery/tests/test_backreferences.py::test_identify_names PASSED [ 3%] sphinx_gallery/tests/test_backreferences.py::test_identify_names2 PASSED [ 4%] sphinx_gallery/tests/test_binder.py::test_binder PASSED [ 4%] sphinx_gallery/tests/test_binder.py::test_gen_binder_rst PASSED [ 5%] sphinx_gallery/tests/test_docs_resolv.py::test_shelve PASSED [ 6%] sphinx_gallery/tests/test_docs_resolv.py::test_parse_sphinx_docopts PASSED [ 6%] sphinx_gallery/tests/test_full.py::test_timings ERROR [ 7%] sphinx_gallery/tests/test_full.py::test_optipng ERROR [ 8%] sphinx_gallery/tests/test_full.py::test_junit ERROR [ 8%] sphinx_gallery/tests/test_full.py::test_thumbnail_path ERROR [ 9%] sphinx_gallery/tests/test_full.py::test_command_line_args_img ERROR [ 9%] sphinx_gallery/tests/test_full.py::test_image_formats ERROR [ 10%] sphinx_gallery/tests/test_full.py::test_backreferences ERROR [ 11%] sphinx_gallery/tests/test_full.py::test_backreferences_examples[sphinx_gallery.backreferences.identify_names.examples-plot_numpy_matplotlib] ERROR [ 11%] sphinx_gallery/tests/test_full.py::test_backreferences_examples[sphinx_gallery.sorting.ExplicitOrder.examples-plot_second_future_imports] ERROR [ 12%] sphinx_gallery/tests/test_full.py::test_logging_std_nested ERROR [ 12%] sphinx_gallery/tests/test_full.py::test_rebuild ERROR [ 13%] sphinx_gallery/tests/test_full.py::test_error_messages[future/plot_future_imports_broken-.*RuntimeError.*Forcing this example to fail on Python 3.*] ERROR [ 14%] sphinx_gallery/tests/test_full.py::test_error_messages[plot_scraper_broken-.*ValueError.*zero-size array to reduction.*] ERROR [ 14%] sphinx_gallery/tests/test_full.py::test_alt_text_image ERROR [ 15%] sphinx_gallery/tests/test_full.py::test_alt_text_thumbnail ERROR [ 16%] sphinx_gallery/tests/test_full.py::test_backreference_labels ERROR [ 16%] sphinx_gallery/tests/test_full.py::test_minigallery_directive ERROR [ 17%] sphinx_gallery/tests/test_full.py::test_matplotlib_warning_filter ERROR [ 17%] sphinx_gallery/tests/test_full.py::test_jupyter_notebook_pandoc ERROR [ 18%] sphinx_gallery/tests/test_full.py::test_md5_hash ERROR [ 19%] sphinx_gallery/tests/test_full.py::test_binder_logo_exists ERROR [ 19%] sphinx_gallery/tests/test_gen_gallery.py::test_default_config PASSED [ 20%] sphinx_gallery/tests/test_gen_gallery.py::test_no_warning_simple_config PASSED [ 20%] sphinx_gallery/tests/test_gen_gallery.py::test_bad_reset[Resetter unknown] PASSED [ 21%] sphinx_gallery/tests/test_gen_gallery.py::test_bad_reset[Resetter not callable] PASSED [ 22%] sphinx_gallery/tests/test_gen_gallery.py::test_bad_css[CSS str error] PASSED [ 22%] sphinx_gallery/tests/test_gen_gallery.py::test_bad_css[CSS type error] PASSED [ 23%] sphinx_gallery/tests/test_gen_gallery.py::test_config_old_backreferences_conf PASSED [ 24%] sphinx_gallery/tests/test_gen_gallery.py::test_config_backreferences PASSED [ 24%] sphinx_gallery/tests/test_gen_gallery.py::test_duplicate_files_warn PASSED [ 25%] sphinx_gallery/tests/test_gen_gallery.py::test_spaces_in_files_warn PASSED [ 25%] sphinx_gallery/tests/test_gen_gallery.py::test_example_sorting_default PASSED [ 26%] sphinx_gallery/tests/test_gen_gallery.py::test_example_sorting_filesize PASSED [ 27%] sphinx_gallery/tests/test_gen_gallery.py::test_example_sorting_filename PASSED [ 27%] sphinx_gallery/tests/test_gen_gallery.py::test_example_sorting_title PASSED [ 28%] sphinx_gallery/tests/test_gen_gallery.py::test_collect_gallery_files PASSED [ 29%] sphinx_gallery/tests/test_gen_gallery.py::test_collect_gallery_files_ignore_pattern PASSED [ 29%] sphinx_gallery/tests/test_gen_gallery.py::test_binder_copy_files PASSED [ 30%] sphinx_gallery/tests/test_gen_gallery.py::test_failing_examples_raise_exception PASSED [ 30%] sphinx_gallery/tests/test_gen_gallery.py::test_expected_failing_examples_were_executed PASSED [ 31%] sphinx_gallery/tests/test_gen_gallery.py::test_examples_not_expected_to_pass PASSED [ 32%] sphinx_gallery/tests/test_gen_gallery.py::test_show_memory_callable PASSED [ 32%] sphinx_gallery/tests/test_gen_gallery.py::test_first_notebook_cell_config PASSED [ 33%] sphinx_gallery/tests/test_gen_gallery.py::test_last_notebook_cell_config PASSED [ 33%] sphinx_gallery/tests/test_gen_gallery.py::test_backreferences_dir_config PASSED [ 34%] sphinx_gallery/tests/test_gen_gallery.py::test_backreferences_dir_pathlib_config PASSED [ 35%] sphinx_gallery/tests/test_gen_gallery.py::test_write_computation_times_noop PASSED [ 35%] sphinx_gallery/tests/test_gen_gallery.py::test_pypandoc_config_list PASSED [ 36%] sphinx_gallery/tests/test_gen_gallery.py::test_pypandoc_config_keys PASSED [ 37%] sphinx_gallery/tests/test_gen_rst.py::test_split_code_and_text_blocks PASSED [ 37%] sphinx_gallery/tests/test_gen_rst.py::test_bug_cases_of_notebook_syntax PASSED [ 38%] sphinx_gallery/tests/test_gen_rst.py::test_direct_comment_after_docstring PASSED [ 38%] sphinx_gallery/tests/test_gen_rst.py::test_final_rst_last_word PASSED [ 39%] sphinx_gallery/tests/test_gen_rst.py::test_rst_block_after_docstring PASSED [ 40%] sphinx_gallery/tests/test_gen_rst.py::test_rst_empty_code_block PASSED [ 40%] sphinx_gallery/tests/test_gen_rst.py::test_script_vars_globals PASSED [ 41%] sphinx_gallery/tests/test_gen_rst.py::test_codestr2rst PASSED [ 41%] sphinx_gallery/tests/test_gen_rst.py::test_extract_intro_and_title PASSED [ 42%] sphinx_gallery/tests/test_gen_rst.py::test_md5sums[b-a546be453c8f436e744838a4801bd3a0] PASSED [ 43%] sphinx_gallery/tests/test_gen_rst.py::test_md5sums[t-ea8a570e9f3afc0a7c3f2a17a48b8047] PASSED [ 43%] sphinx_gallery/tests/test_gen_rst.py::test_fail_example[failing_code0-not defined] PASSED [ 44%] sphinx_gallery/tests/test_gen_rst.py::test_fail_example[failing_code1-Cannot use input] PASSED [ 45%] sphinx_gallery/tests/test_gen_rst.py::test_fail_example[failing_code2-invalid syntax] PASSED [ 45%] sphinx_gallery/tests/test_gen_rst.py::test_custom_scraper_thumbnail_alpha PASSED [ 46%] sphinx_gallery/tests/test_gen_rst.py::test_remove_config_comments PASSED [ 46%] sphinx_gallery/tests/test_gen_rst.py::test_download_link_note_only_html PASSED [ 47%] sphinx_gallery/tests/test_gen_rst.py::test_download_link_classes PASSED [ 48%] sphinx_gallery/tests/test_gen_rst.py::test_gen_dir_rst[.txt] PASSED [ 48%] sphinx_gallery/tests/test_gen_rst.py::test_gen_dir_rst[.rst] PASSED [ 49%] sphinx_gallery/tests/test_gen_rst.py::test_gen_dir_rst[.bad] PASSED [ 50%] sphinx_gallery/tests/test_gen_rst.py::test_pattern_matching PASSED [ 50%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_number[# sphinx_gallery_thumbnail_number= 2] PASSED [ 51%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_number[# sphinx_gallery_thumbnail_number=2] PASSED [ 51%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_number[#sphinx_gallery_thumbnail_number = 2] PASSED [ 52%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_number[ # sphinx_gallery_thumbnail_number=2] PASSED [ 53%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_path[# sphinx_gallery_thumbnail_path= '_static/demo.png'] PASSED [ 53%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_path[# sphinx_gallery_thumbnail_path='_static/demo.png'] PASSED [ 54%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_path[#sphinx_gallery_thumbnail_path = '_static/demo.png'] PASSED [ 54%] sphinx_gallery/tests/test_gen_rst.py::test_thumbnail_path[ # sphinx_gallery_thumbnail_path='_static/demo.png'] PASSED [ 55%] sphinx_gallery/tests/test_gen_rst.py::test_zip_notebooks PASSED [ 56%] sphinx_gallery/tests/test_gen_rst.py::test_rst_example PASSED [ 56%] sphinx_gallery/tests/test_gen_rst.py::test_output_indentation PASSED [ 57%] sphinx_gallery/tests/test_gen_rst.py::test_empty_output_box PASSED [ 58%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[assign,()] PASSED [ 58%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[var,()] PASSED [ 59%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print(var),()] PASSED [ 59%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print+var,()] PASSED [ 60%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[assign,(repr)] PASSED [ 61%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[var,(repr)] PASSED [ 61%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print(var),(repr)] PASSED [ 62%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print+var,(repr)] PASSED [ 62%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_and_html,(repr)] PASSED [ 63%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print and repr_and_html,(repr)] PASSED [ 64%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_only,(html)] PASSED [ 64%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_and_html,(html)] PASSED [ 65%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[print and repr_and_html,(html)] PASSED [ 66%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_and_html,(html,repr)] PASSED [ 66%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_and_html,(repr,html)] PASSED [ 67%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[repr_only,(html,repr)] PASSED [ 67%] sphinx_gallery/tests/test_gen_rst.py::test_capture_repr[html_none] PASSED [ 68%] sphinx_gallery/tests/test_gen_rst.py::test_ignore_repr_types PASSED [ 69%] sphinx_gallery/tests/test_gen_rst.py::TestLoggingTee::test_full_line PASSED [ 69%] sphinx_gallery/tests/test_gen_rst.py::TestLoggingTee::test_incomplete_line_with_flush PASSED [ 70%] sphinx_gallery/tests/test_gen_rst.py::TestLoggingTee::test_incomplete_line_with_more_output PASSED [ 70%] sphinx_gallery/tests/test_gen_rst.py::TestLoggingTee::test_multi_line PASSED [ 71%] sphinx_gallery/tests/test_gen_rst.py::TestLoggingTee::test_isatty PASSED [ 72%] sphinx_gallery/tests/test_load_style.py::test_load_style PASSED [ 72%] sphinx_gallery/tests/test_notebook.py::test_latex_conversion PASSED [ 73%] sphinx_gallery/tests/test_notebook.py::test_convert PASSED [ 74%] sphinx_gallery/tests/test_notebook.py::test_headings PASSED [ 74%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[rel_no_prefix] PASSED [ 75%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[abs_no_prefix] PASSED [ 75%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[rel_prefix] PASSED [ 76%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[abs_prefix] PASSED [ 77%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[url_no_prefix] PASSED [ 77%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_prefix[url_prefix] PASSED [ 78%] sphinx_gallery/tests/test_notebook.py::test_notebook_images_data_uri PASSED [ 79%] sphinx_gallery/tests/test_notebook.py::test_jupyter_notebook PASSED [ 79%] sphinx_gallery/tests/test_notebook.py::test_with_empty_args PASSED [ 80%] sphinx_gallery/tests/test_notebook.py::test_missing_file PASSED [ 80%] sphinx_gallery/tests/test_notebook.py::test_file_is_generated PASSED [ 81%] sphinx_gallery/tests/test_py_source_parser.py::test_get_docstring_and_rest PASSED [ 82%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[No config\nin here.-file_conf0] PASSED [ 82%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[# sphinx_gallery_line_numbers = True-file_conf1] PASSED [ 83%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[ # sphinx_gallery_line_numbers = True -file_conf2] PASSED [ 83%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[#sphinx_gallery_line_numbers=True-file_conf3] PASSED [ 84%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[#sphinx_gallery_thumbnail_number\n=\n5-file_conf4] PASSED [ 85%] sphinx_gallery/tests/test_py_source_parser.py::test_extract_file_config[#sphinx_gallery_thumbnail_number=1foo-None] PASSED [ 85%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[No config\nin here.-No config\nin here.] PASSED [ 86%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[# sphinx_gallery_line_numbers = True-] PASSED [ 87%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[ # sphinx_gallery_line_numbers = True -] PASSED [ 87%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[#sphinx_gallery_line_numbers=True-] PASSED [ 88%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[#sphinx_gallery_thumbnail_number\n=\n5-] PASSED [ 88%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[a = 1\n# sphinx_gallery_line_numbers = True\nb = 1-a = 1\nb = 1] PASSED [ 89%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[a = 1\n\n# sphinx_gallery_line_numbers = True\n\nb = 1-a = 1\n\n\nb = 1] PASSED [ 90%] sphinx_gallery/tests/test_py_source_parser.py::test_remove_config_comments[# comment\n# sphinx_gallery_line_numbers = True\n# commment 2-# comment\n# commment 2] PASSED [ 90%] sphinx_gallery/tests/test_scrapers.py::test_save_matplotlib_figures[png] PASSED [ 91%] sphinx_gallery/tests/test_scrapers.py::test_save_matplotlib_figures[svg] PASSED [ 91%] sphinx_gallery/tests/test_scrapers.py::test_save_mayavi_figures SKIPPED [ 92%] sphinx_gallery/tests/test_scrapers.py::test_custom_scraper PASSED [ 93%] sphinx_gallery/tests/test_scrapers.py::test_figure_rst[png] PASSED [ 93%] sphinx_gallery/tests/test_scrapers.py::test_figure_rst[svg] PASSED [ 94%] sphinx_gallery/tests/test_scrapers.py::test_figure_rst[jpg] PASSED [ 95%] sphinx_gallery/tests/test_scrapers.py::test_figure_rst[gif] PASSED [ 95%] sphinx_gallery/tests/test_scrapers.py::test_iterator PASSED [ 96%] sphinx_gallery/tests/test_sorting.py::test_ExplicitOrder_sorting_key PASSED [ 96%] sphinx_gallery/tests/test_sphinx_compatibility.py::test_status_iterator PASSED [ 97%] sphinx_gallery/tests/test_sphinx_compatibility.py::test_status_iterator_color PASSED [ 98%] sphinx_gallery/tests/test_sphinx_compatibility.py::test_get_logger PASSED [ 98%] sphinx_gallery/tests/test_utils.py::test_replace_py_ipynb[some/file/name] PASSED [ 99%] sphinx_gallery/tests/test_utils.py::test_replace_py_ipynb[/corner.pycase] PASSED [100%] ======================================================== ERRORS ======================================================== ____________________________________________ ERROR at setup of test_timings ____________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError -------------------------------------------------- Captured log setup -------------------------------------------------- INFO first_logger:plot_log.py:23 is in the same cell INFO first_logger:plot_log.py:26 is not in the same cell WARNING matplotlib.animation:animation.py:1108 MovieWriter ffmpeg unavailable; trying to use pillow instead. ____________________________________________ ERROR at setup of test_optipng ____________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _____________________________________________ ERROR at setup of test_junit _____________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ________________________________________ ERROR at setup of test_thumbnail_path _________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _____________________________________ ERROR at setup of test_command_line_args_img _____________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _________________________________________ ERROR at setup of test_image_formats _________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ________________________________________ ERROR at setup of test_backreferences _________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _ ERROR at setup of test_backreferences_examples[sphinx_gallery.backreferences.identify_names.examples-plot_numpy_matplotlib] _ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _ ERROR at setup of test_backreferences_examples[sphinx_gallery.sorting.ExplicitOrder.examples-plot_second_future_imports] _ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ______________________________________ ERROR at setup of test_logging_std_nested _______________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ____________________________________________ ERROR at setup of test_rebuild ____________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _ ERROR at setup of test_error_messages[future/plot_future_imports_broken-.*RuntimeError.*Forcing this example to fail on Python 3.*] _ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _______ ERROR at setup of test_error_messages[plot_scraper_broken-.*ValueError.*zero-size array to reduction.*] ________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ________________________________________ ERROR at setup of test_alt_text_image _________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ______________________________________ ERROR at setup of test_alt_text_thumbnail _______________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _____________________________________ ERROR at setup of test_backreference_labels ______________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError _____________________________________ ERROR at setup of test_minigallery_directive _____________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ___________________________________ ERROR at setup of test_matplotlib_warning_filter ___________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ____________________________________ ERROR at setup of test_jupyter_notebook_pandoc ____________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ___________________________________________ ERROR at setup of test_md5_hash ____________________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ______________________________________ ERROR at setup of test_binder_logo_exists _______________________________________ tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0'))) req_mpl = None, req_pil = None @pytest.fixture(scope='module') def sphinx_app(tmpdir_factory, req_mpl, req_pil): temp_dir = (tmpdir_factory.getbasetemp() / 'root').strpath src_dir = op.join(op.dirname(__file__), 'tinybuild') def ignore(src, names): return ('_build', 'gen_modules', 'auto_examples') shutil.copytree(src_dir, temp_dir, ignore=ignore) # For testing iteration, you can get similar behavior just doing `make` # inside the tinybuild directory src_dir = temp_dir conf_dir = temp_dir out_dir = op.join(temp_dir, '_build', 'html') toctrees_dir = op.join(temp_dir, '_build', 'toctrees') # Avoid warnings about re-registration, see: # https://github.com/sphinx-doc/sphinx/issues/5038 with docutils_namespace(): app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir, buildername='html', status=StringIO(), warning=StringIO()) # need to build within the context manager # for automodule and backrefs to work > app.build(False, []) sphinx_gallery/tests/test_full.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/site-packages/sphinx/application.py:385: in build self.events.emit('build-finished', None) /usr/lib/python3.7/site-packages/sphinx/events.py:110: in emit results.append(listener.handler(self.app, *args)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ app = , exception = None def summarize_failing_examples(app, exception): """Collects the list of falling examples and prints them with a traceback. Raises ValueError if there where failing examples. """ if exception is not None: return # Under no-plot Examples are not run so nothing to summarize if not app.config.sphinx_gallery_conf['plot_gallery']: logger.info('Sphinx-gallery gallery_conf["plot_gallery"] was ' 'False, so no examples were executed.', color='brown') return gallery_conf = app.config.sphinx_gallery_conf failing_as_expected, failing_unexpectedly, passing_unexpectedly = \ _parse_failures(gallery_conf) if failing_as_expected: logger.info("Examples failing as expected:", color='brown') for fail_example in failing_as_expected: logger.info('%s failed leaving traceback:', fail_example, color='brown') logger.info(gallery_conf['failing_examples'][fail_example], color='brown') fail_msgs = [] if failing_unexpectedly: fail_msgs.append(red("Unexpected failing examples:")) for fail_example in failing_unexpectedly: fail_msgs.append(fail_example + ' failed leaving traceback:\n' + gallery_conf['failing_examples'][fail_example] + '\n') if passing_unexpectedly: fail_msgs.append(red("Examples expected to fail, but not failing:\n") + "Please remove these examples from\n" + "sphinx_gallery_conf['expected_failing_examples']\n" + "in your conf.py file" "\n".join(passing_unexpectedly)) # standard message n_good = len(gallery_conf['passing_examples']) n_tot = len(gallery_conf['failing_examples']) + n_good n_stale = len(gallery_conf['stale_examples']) logger.info('\nSphinx-gallery successfully executed %d out of %d ' 'file%s subselected by:\n\n' ' gallery_conf["filename_pattern"] = %r\n' ' gallery_conf["ignore_pattern"] = %r\n' '\nafter excluding %d file%s that had previously been run ' '(based on MD5).\n' % (n_good, n_tot, 's' if n_tot != 1 else '', gallery_conf['filename_pattern'], gallery_conf['ignore_pattern'], n_stale, 's' if n_stale != 1 else '', ), color='brown') if fail_msgs: raise ExtensionError( "Here is a summary of the problems encountered " "when running the examples\n\n" + "\n".join(fail_msgs) + > "\n" + "-" * 79) E sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples E E Unexpected failing examples: E /var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/examples/plot_animation.py failed leaving traceback: E Traceback (most recent call last): E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 335, in save_figures E rst = scraper(block, block_vars, gallery_conf) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/pytest-of-portage/pytest-0/root/conf.py", line 17, in __call__ E return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 133, in matplotlib_scraper E image_rsts.append(_anim_rst(anim, image_path, gallery_conf)) E File "/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1/sphinx_gallery/scrapers.py", line 192, in _anim_rst E anim.save(image_path, writer=writer, dpi=use_dpi) E File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1111, in save E extra_args=extra_args, metadata=metadata) E TypeError: 'str' object is not callable E E E ------------------------------------------------------------------------------- sphinx_gallery/gen_gallery.py:700: ExtensionError ================================================= slowest 5 durations ================================================== 5.24s setup sphinx_gallery/tests/test_full.py::test_timings 0.53s call sphinx_gallery/tests/test_gen_gallery.py::test_show_memory_callable 0.52s call sphinx_gallery/tests/test_gen_gallery.py::test_failing_examples_raise_exception 0.52s call sphinx_gallery/tests/test_gen_gallery.py::test_expected_failing_examples_were_executed 0.51s call sphinx_gallery/tests/test_gen_gallery.py::test_examples_not_expected_to_pass =============================================== short test summary info ================================================ SKIPPED [1] sphinx_gallery/tests/test_scrapers.py:71: Mayavi not installed ERROR sphinx_gallery/tests/test_full.py::test_timings - sphinx.errors.ExtensionError: Here is a summary of the proble... ERROR sphinx_gallery/tests/test_full.py::test_optipng - sphinx.errors.ExtensionError: Here is a summary of the proble... ERROR sphinx_gallery/tests/test_full.py::test_junit - sphinx.errors.ExtensionError: Here is a summary of the problems... ERROR sphinx_gallery/tests/test_full.py::test_thumbnail_path - sphinx.errors.ExtensionError: Here is a summary of the... ERROR sphinx_gallery/tests/test_full.py::test_command_line_args_img - sphinx.errors.ExtensionError: Here is a summary... ERROR sphinx_gallery/tests/test_full.py::test_image_formats - sphinx.errors.ExtensionError: Here is a summary of the ... ERROR sphinx_gallery/tests/test_full.py::test_backreferences - sphinx.errors.ExtensionError: Here is a summary of the... ERROR sphinx_gallery/tests/test_full.py::test_backreferences_examples[sphinx_gallery.backreferences.identify_names.examples-plot_numpy_matplotlib] ERROR sphinx_gallery/tests/test_full.py::test_backreferences_examples[sphinx_gallery.sorting.ExplicitOrder.examples-plot_second_future_imports] ERROR sphinx_gallery/tests/test_full.py::test_logging_std_nested - sphinx.errors.ExtensionError: Here is a summary of... ERROR sphinx_gallery/tests/test_full.py::test_rebuild - sphinx.errors.ExtensionError: Here is a summary of the proble... ERROR sphinx_gallery/tests/test_full.py::test_error_messages[future/plot_future_imports_broken-.*RuntimeError.*Forcing this example to fail on Python 3.*] ERROR sphinx_gallery/tests/test_full.py::test_error_messages[plot_scraper_broken-.*ValueError.*zero-size array to reduction.*] ERROR sphinx_gallery/tests/test_full.py::test_alt_text_image - sphinx.errors.ExtensionError: Here is a summary of the... ERROR sphinx_gallery/tests/test_full.py::test_alt_text_thumbnail - sphinx.errors.ExtensionError: Here is a summary of... ERROR sphinx_gallery/tests/test_full.py::test_backreference_labels - sphinx.errors.ExtensionError: Here is a summary ... ERROR sphinx_gallery/tests/test_full.py::test_minigallery_directive - sphinx.errors.ExtensionError: Here is a summary... ERROR sphinx_gallery/tests/test_full.py::test_matplotlib_warning_filter - sphinx.errors.ExtensionError: Here is a sum... ERROR sphinx_gallery/tests/test_full.py::test_jupyter_notebook_pandoc - sphinx.errors.ExtensionError: Here is a summa... ERROR sphinx_gallery/tests/test_full.py::test_md5_hash - sphinx.errors.ExtensionError: Here is a summary of the probl... ERROR sphinx_gallery/tests/test_full.py::test_binder_logo_exists - sphinx.errors.ExtensionError: Here is a summary of... ====================================== 140 passed, 1 skipped, 21 errors in 13.24s ====================================== * ERROR: dev-python/sphinx-gallery-0.8.1::gentoo failed (test phase): * Tests fail with python3.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2926: Called distutils-r1_src_test * environment, line 1233: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 449: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2532: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2015: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2013: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 806: Called distutils-r1_run_phase 'python_test' * environment, line 1170: Called python_test * environment, line 2883: Called die * The specific snippet of code: * pytest -vv || die "Tests fail with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/sphinx-gallery-0.8.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/sphinx-gallery-0.8.1::gentoo'`. * The complete build log is located at '/var/log/portage/dev-python:sphinx-gallery-0.8.1:20201118-232457.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1' * S: '/var/tmp/portage/dev-python/sphinx-gallery-0.8.1/work/sphinx-gallery-0.8.1'