==> Building on s ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-sphinxcontrib-bibtex ./ PKGBUILD 1,135 100% 0.00kB/s 0:00:00 1,135 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-sphinxcontrib-bibtex-2.4.2-1.log 255 100% 249.02kB/s 0:00:00 255 100% 249.02kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 986 bytes received 116 bytes 440.80 bytes/sec total size is 1,323 speedup is 1.20 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix4 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix4]...done ==> Making package: python-sphinxcontrib-bibtex 2.4.2-1 (Wed Aug 10 03:04:18 2022) ==> Retrieving sources...  -> Downloading python-sphinxcontrib-bibtex-2.4.2.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 99590 0 99590 0 0 192k 0 --:--:-- --:--:-- --:--:-- 192k ==> Validating source files with sha256sums... python-sphinxcontrib-bibtex-2.4.2.tar.gz ... Passed ==> Making package: python-sphinxcontrib-bibtex 2.4.2-1 (Wed Aug 10 03:04:30 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (34) New Version Net Change Download Size core/libnsl 2.0.0-2 0.06 MiB extra/libyaml 0.2.5-1 0.14 MiB core/python 3.10.5-1 80.43 MiB extra/python-appdirs 1.4.4-6 0.07 MiB community/python-babel 2.10.3-1 29.15 MiB extra/python-chardet 5.0.0-1 2.44 MiB extra/python-idna 3.3-4 0.66 MiB community/python-imagesize 1.4.1-1 0.03 MiB community/python-jinja 1:3.1.2-2 1.28 MiB community/python-latexcodec 2.0.1-5 0.13 MiB extra/python-markupsafe 2.1.1-1 0.06 MiB community/python-more-itertools 8.13.0-2 0.48 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-packaging 21.3-1 0.26 MiB community/python-pygments 2.12.0-1 11.43 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB community/python-pytz 2022.1-1 0.14 MiB extra/python-requests 2.28.1-1 0.45 MiB extra/python-setuptools 1:59.5.0-1 2.96 MiB extra/python-six 1.16.0-5 0.09 MiB community/python-snowballstemmer 2.2.0-3 1.78 MiB community/python-sphinx-alabaster-theme 0.7.12-9 0.04 MiB community/python-sphinxcontrib-applehelp 1.0.2-8 0.24 MiB community/python-sphinxcontrib-devhelp 1.0.2-8 0.12 MiB community/python-sphinxcontrib-htmlhelp 2.0.0-3 0.15 MiB community/python-sphinxcontrib-jsmath 1.0.1-11 0.01 MiB community/python-sphinxcontrib-qthelp 1.0.3-8 0.15 MiB community/python-sphinxcontrib-serializinghtml 1.1.5-3 0.12 MiB extra/python-urllib3 1.26.7-5 0.69 MiB community/python-yaml 6.0-1 0.68 MiB community/python-docutils 1:0.19-1 4.28 MiB community/python-pybtex 0.24.0-4 1.11 MiB community/python-pybtex-docutils 1.0.2-1 0.03 MiB 0.01 MiB community/python-sphinx 5.1.1-1 15.31 MiB Total Download Size: 0.01 MiB Total Installed Size: 156.03 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-pybtex-docutils-1.0.2-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools [pending] python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-pytz... installing python-babel... installing python-docutils... installing python-imagesize... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support [installed] installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams [installed] installing python-packaging... installing python-appdirs... installing python-more-itertools... installing python-ordered-set... installing python-setuptools... installing python-pygments... installing python-urllib3... Optional dependencies for python-urllib3 python-pysocks: SOCKS support python-brotli: Brotli support python-pyopenssl: security support python-idna: security support [pending] installing python-chardet... installing python-idna... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support installing python-snowballstemmer... Optional dependencies for python-snowballstemmer python-pystemmer: for improved performance installing python-sphinx-alabaster-theme... installing python-sphinxcontrib-applehelp... installing python-sphinxcontrib-devhelp... installing python-sphinxcontrib-htmlhelp... installing python-sphinxcontrib-jsmath... installing python-sphinxcontrib-qthelp... installing python-sphinxcontrib-serializinghtml... installing python-sphinx... Optional dependencies for python-sphinx imagemagick: for ext.imgconverter texlive-latexextra: for generation of PDF documentation installing python-six... installing libyaml... installing python-yaml... installing python-latexcodec... installing python-pybtex... installing python-pybtex-docutils... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (8) New Version Net Change Download Size community/python-apipkg 3.0.1-1 0.04 MiB extra/python-attrs 21.4.0-1 0.45 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-pluggy 1.0.0-1 0.10 MiB community/python-py 1.11.0-1 0.71 MiB extra/python-tomli 2.0.1-1 0.08 MiB community/python-numpydoc 1.4.0-1 0.49 MiB 0.09 MiB community/python-pytest 7.1.2-1 2.62 MiB Total Download Size: 0.09 MiB Total Installed Size: 4.51 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-numpydoc-1.4.0-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-attrs... installing python-iniconfig... installing python-pluggy... installing python-apipkg... installing python-py... installing python-tomli... installing python-pytest... installing python-numpydoc... [?25h==> Retrieving sources...  -> Found python-sphinxcontrib-bibtex-2.4.2.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-sphinxcontrib-bibtex-2.4.2.tar.gz with bsdtar ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/sphinxcontrib copying src/sphinxcontrib/__init__.py -> build/lib/sphinxcontrib creating build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/__init__.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/bibfile.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/directives.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/domain.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/foot_directives.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/foot_domain.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/foot_roles.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/nodes.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/plugin.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/richtext.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/roles.py -> build/lib/sphinxcontrib/bibtex copying src/sphinxcontrib/bibtex/transforms.py -> build/lib/sphinxcontrib/bibtex creating build/lib/sphinxcontrib/bibtex/style copying src/sphinxcontrib/bibtex/style/__init__.py -> build/lib/sphinxcontrib/bibtex/style copying src/sphinxcontrib/bibtex/style/template.py -> build/lib/sphinxcontrib/bibtex/style creating build/lib/sphinxcontrib/bibtex/style/names copying src/sphinxcontrib/bibtex/style/names/__init__.py -> build/lib/sphinxcontrib/bibtex/style/names copying src/sphinxcontrib/bibtex/style/names/last.py -> build/lib/sphinxcontrib/bibtex/style/names creating build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/__init__.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/author_year.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/basic_author_year.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/basic_foot.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/basic_label.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/basic_super.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/extra_author.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/extra_empty.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/extra_label.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/extra_year.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/foot.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/label.py -> build/lib/sphinxcontrib/bibtex/style/referencing copying src/sphinxcontrib/bibtex/style/referencing/super_.py -> build/lib/sphinxcontrib/bibtex/style/referencing running egg_info creating src/sphinxcontrib_bibtex.egg-info writing src/sphinxcontrib_bibtex.egg-info/PKG-INFO writing dependency_links to src/sphinxcontrib_bibtex.egg-info/dependency_links.txt writing entry points to src/sphinxcontrib_bibtex.egg-info/entry_points.txt writing namespace_packages to src/sphinxcontrib_bibtex.egg-info/namespace_packages.txt writing requirements to src/sphinxcontrib_bibtex.egg-info/requires.txt writing top-level names to src/sphinxcontrib_bibtex.egg-info/top_level.txt writing manifest file 'src/sphinxcontrib_bibtex.egg-info/SOURCES.txt' reading manifest file 'src/sphinxcontrib_bibtex.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching 'release_checklist.txt' no previously-included directories found matching 'doc/_build' adding license file 'LICENSE.rst' writing manifest file 'src/sphinxcontrib_bibtex.egg-info/SOURCES.txt' copying src/sphinxcontrib/bibtex/py.typed -> build/lib/sphinxcontrib/bibtex ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0 rootdir: /build/python-sphinxcontrib-bibtex/src/sphinxcontrib-bibtex-2.4.2, configfile: pytest.ini, testpaths: test collected 90 items test/test_autodoc.py .F. [ 3%] test/test_backrefs.py F [ 4%] test/test_bibfiles.py F......FF [ 14%] test/test_bibliography.py ...FF...FFFFF.F.FF [ 34%] test/test_citation.py ..FF.........FFFF [ 53%] test/test_debug.py .... [ 57%] test/test_duplicate.py FFFFFF [ 64%] test/test_filter.py .... [ 68%] test/test_footcite.py .. [ 71%] test/test_latex.py .. [ 73%] test/test_list.py F... [ 77%] test/test_natbib.py ...... [ 84%] test/test_numpydoc.py F [ 85%] test/test_parallel.py . [ 86%] test/test_plugin.py ... [ 90%] test/test_root_doc.py . [ 91%] test/test_sphinx.py . [ 92%] test/test_style.py ..... [ 97%] test/test_template.py .. [100%] =================================== FAILURES =================================== _________________________________ test_autodoc _________________________________ app = warning = <_io.StringIO object at 0x40041b3a30> @pytest.mark.sphinx('html', testroot='autodoc') def test_autodoc(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "doc_cite.html").read_text() labels = ['One', 'Two', 'Thr', 'Fou', 'Fiv', 'Six', 'Sev', 'Eig', 'Nin', 'Ten', 'Ele'] titles = ['Een', 'Twee', 'Drie', 'Vier', 'Vijf', 'Zes', 'Zeven', 'Acht', 'Negen', 'Tien', 'Elf'] for label, title in zip(labels, titles): assert len(html_citation_refs_single(label=label).findall(output)) == 1 > assert len(html_citations(label=label).findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).findall E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='One') test/test_autodoc.py:36: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/autodoc # outdir: /tmp/pytest-of-builduser/pytest-0/autodoc/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/autodoc/test.bib... parsed 11 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 3 source files that are out of date updating environment: [new config] 3 added, 0 changed, 0 removed reading sources... [ 33%] doc_cite reading sources... [ 66%] doc_footcite reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 33%] doc_cite writing output... [ 66%] doc_footcite writing output... [100%] index generating indices... genindex py-modindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/autodoc/_build/html. # warning: ________________________________ test_backrefs _________________________________ app = warning = <_io.StringIO object at 0x4005068670> @pytest.mark.sphinx('html', testroot='backrefs') def test_backrefs(app, warning) -> None: app.build() output = (app.outdir / "index.html").read_text() match = html_citations(text=".*Test zero.*").search(output) > assert match E assert None test/test_backrefs.py:12: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/backrefs # outdir: /tmp/pytest-of-builduser/pytest-0/backrefs/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/backrefs/test.bib... parsed 4 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/backrefs/_build/html. # warning: __________________________ test_bibfiles_out_of_date ___________________________ make_app = .make at 0x4004e7be20> app_params = app_params(args=['html'], kwargs={'srcdir': path('/tmp/pytest-of-builduser/pytest-0/bibfiles_out_of_date')}) @pytest.mark.sphinx('html', testroot='bibfiles_out_of_date') def test_bibfiles_out_of_date(make_app, app_params) -> None: args, kwargs = app_params app = make_app(*args, **kwargs) app.build() status = app._status.getvalue() # not found, parsing assert re.search(status_up_to_date, status) is None assert re.search(status_out_of_date, status) is not None assert re.search(status_parsing, status) is not None output = (app.outdir / "index.html").read_text() > assert html_citations(label='1', text='.*Akkerdju.*').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x4005148790> @pytest.mark.sphinx('html', testroot='bibfiles_multiple_macros') def test_bibfiles_multiple_macros(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert html_citations( label='1', text=r'.*Rev\. Mod\. Phys\..*').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x40051fb130> @pytest.mark.sphinx('html', testroot='bibfiles_multiple_keys') def test_bibfiles_multiple_keys(app, warning) -> None: app.build() assert re.search( "bibliography data error in .*: repeated bibliograhpy entry: test", warning.getvalue()) is not None output = (app.outdir / "index.html").read_text() > assert html_citations(label='1', text='.*Test one.*').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x400560ea70> @pytest.mark.sphinx('html', testroot='bibliography_style_default') def test_bibliography_style_default(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() # ensure Man09 is cited with plain style and not with alpha style > assert citation_refs(output) == citations(output) == {"1"} E AssertionError: assert {'1'} == set() E Extra items in the left set: E '1' E Use -v to get more diff test/test_bibliography.py:53: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_style_default # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_style_default/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_style_default/test.bib... parsed 1 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_style_default/_build/html. # warning: _______________________ test_bibliography_style_label_1 ________________________ app = warning = <_io.StringIO object at 0x40056f1bd0> @pytest.mark.sphinx('html', testroot='bibliography_style_label_1') def test_bibliography_style_label_1(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() # the custom style uses keys as labels # citations > assert len(html_citations( label='myfancybibtexkey').findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:(?:)?(?P)?(?: assert citations(output) == citation_refs(output) == {'AMan09', 'AEve03'} E AssertionError: assert set() == {'AEve03', 'AMan09'} E Extra items in the right set: E 'AMan09' E 'AEve03' E Use -v to get more diff test/test_bibliography.py:104: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_key_prefix # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_key_prefix/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_key_prefix/test.bib... parsed 2 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 3 source files that are out of date updating environment: [new config] 3 added, 0 changed, 0 removed reading sources... [ 33%] doc0 reading sources... [ 66%] doc1 reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 33%] doc0 writing output... [ 66%] doc1 writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_key_prefix/_build/html. # warning: _______________________ test_bibliography_label_prefix_1 _______________________ app = warning = <_io.StringIO object at 0x400500fc70> @pytest.mark.sphinx('html', testroot='bibliography_label_prefix_1') def test_bibliography_label_prefix_1(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "doc1.html").read_text() > assert citations(output) == citation_refs(output) == {'A1'} E AssertionError: assert set() == {'A1'} E Extra items in the right set: E 'A1' E Use -v to get more diff test/test_bibliography.py:114: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_1 # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_1/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_1/test1.bib... parsed 1 entries parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_1/test2.bib... parsed 1 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 3 source files that are out of date updating environment: [new config] 3 added, 0 changed, 0 removed reading sources... [ 33%] doc1 reading sources... [ 66%] doc2 reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 33%] doc1 writing output... [ 66%] doc2 writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_1/_build/html. # warning: _______________________ test_bibliography_label_prefix_2 _______________________ app = warning = <_io.StringIO object at 0x4005149240> @pytest.mark.sphinx('html', testroot='bibliography_label_prefix_2') def test_bibliography_label_prefix_2(app, warning) -> None: doc1_refs = {'AFM12', 'ABlu83', 'AGIH02', 'AWS14'} doc1_cites = {'ABlu83', 'AFM12', 'AGIH02', 'AWS14'} doc2_refs = {'BShi13'} doc2_cites = {'BShi13'} sum_refs = {'CMcMahonKM10', 'CRMM11', 'CRM09', 'CMM03', 'CHdJMD13', 'AFM12'} sum_cites = {'CMcMahonKM10', 'CRMM11', 'CRM09', 'CMM03', 'CHdJMD13'} app.build() assert not warning.getvalue() output1 = (app.outdir / "doc1.html").read_text() # use <= instead of == as there are some extra reference nodes assert doc1_refs <= citation_refs(output1) > assert doc1_cites == citations(output1) E AssertionError: assert {'ABlu83', 'A...H02', 'AWS14'} == set() E Extra items in the left set: E 'AFM12' E 'AGIH02' E 'ABlu83' E 'AWS14' E Use -v to get more diff test/test_bibliography.py:133: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_2 # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_2/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_2/refs.bib... parsed 11 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] doc1 reading sources... [ 50%] doc2 reading sources... [ 75%] index reading sources... [100%] summary looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] doc1 writing output... [ 50%] doc2 writing output... [ 75%] index writing output... [100%] summary generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_label_prefix_2/_build/html. # warning: _______________________ test_bibliography_order_unsorted _______________________ app = warning = <_io.StringIO object at 0x400518e7a0> @pytest.mark.sphinx('html', testroot='bibliography_order_unsorted') def test_bibliography_order_unsorted(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert re.search( '
.*Test 1.*
.*
.*Test 2.*
', output, re.DOTALL) E assert None E + where None = ('
.*Test 1.*
.*
.*Test 2.*
', '\n\n\n\n \n \n Page source\n \n\n \n\n \n \n', re.DOTALL) E + where = re.search E + and re.DOTALL = re.DOTALL test/test_bibliography.py:155: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_order_unsorted # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_order_unsorted/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_order_unsorted/test.bib... parsed 2 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_order_unsorted/_build/html. # warning: _________________________ test_bibliography_multi_foot _________________________ app = warning = <_io.StringIO object at 0x40051fbeb0> @pytest.mark.sphinx('html', testroot='bibliography_multi_foot') def test_bibliography_multi_foot(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text(encoding='utf-8') assert output.count('

assert len(re.findall( html_footnotes(id_="footcite-2009-mandel"), output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = (re.compile('

(?:)?(?P)?(?:\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.findall E + and re.compile('
(?:)?(?P)?(?: warning = <_io.StringIO object at 0x4005207400> @pytest.mark.sphinx('html', testroot='bibliography_content') def test_bibliography_content(app, warning) -> None: app.build() assert not warning.getvalue() output1 = (app.outdir / "doc1.html").read_text() output2 = (app.outdir / "doc2.html").read_text() output3 = (app.outdir / "doc3.html").read_text() assert citation_refs(output1) == {'One', 'Two'} > assert citations(output1) == {'One', 'Two', 'Thr'} E AssertionError: assert set() == {'One', 'Thr', 'Two'} E Extra items in the right set: E 'Thr' E 'One' E 'Two' E Use -v to get more diff test/test_bibliography.py:195: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_content # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_content/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_content/test.bib... parsed 11 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] doc1 reading sources... [ 50%] doc2 reading sources... [ 75%] doc3 reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] doc1 writing output... [ 50%] doc2 writing output... [ 75%] doc3 writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_content/_build/html. # warning: ____________________________ test_bibliography_url _____________________________ app = warning = <_io.StringIO object at 0x4004e79f30> @pytest.mark.sphinx('html', testroot='bibliography_url') def test_bibliography_url(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text(encoding='utf-8') match1 = html_citations(label='Een').search(output) match2 = html_citations(label='Twe').search(output) match3 = html_citations(label='Dri').search(output) match4 = html_citations(label='Vie').search(output) > assert match1 is not None E assert None is not None test/test_bibliography.py:221: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_url # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_url/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_url/test.bib... parsed 4 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_url/_build/html. # warning: _________________________ test_bibliography_custom_ids _________________________ app = warning = <_io.StringIO object at 0x4004e7b5b0> @pytest.mark.sphinx('html', testroot='bibliography_custom_ids') def test_bibliography_custom_ids(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text(encoding='utf-8') assert ' id="bibliography-id-1"' in output assert ' id="bibliography-id-2"' in output assert ' id="footbibliography-id-1"' in output assert ' id="footbibliography-id-2"' in output match1 = html_citations(text='.*Evensen.*').search(output) match2 = html_citations(text='.*Mandel.*').search(output) match3 = html_citations(text='.*Lorenc.*').search(output) > assert match1 is not None E assert None is not None test/test_bibliography.py:243: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/bibliography_custom_ids # outdir: /tmp/pytest-of-builduser/pytest-0/bibliography_custom_ids/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/bibliography_custom_ids/test.bib... parsed 3 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/bibliography_custom_ids/_build/html. # warning: _________________________ test_citation_multiple_keys __________________________ app = warning = <_io.StringIO object at 0x4005149bd0> @pytest.mark.sphinx('html', testroot='citation_multiple_keys') def test_citation_multiple_keys(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() cits = {match.group('label') for match in html_citations().finditer(output)} citrefs = {match.group('label') for match in html_citation_refs().finditer(output)} > assert {"App", "Bra"} == cits == citrefs E AssertionError: assert {'App', 'Bra'} == set() E Extra items in the left set: E 'App' E 'Bra' E Use -v to get more diff test/test_citation.py:52: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/citation_multiple_keys # outdir: /tmp/pytest-of-builduser/pytest-0/citation_multiple_keys/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/citation_multiple_keys/refs.bib... parsed 2 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/citation_multiple_keys/_build/html. # warning: ____________________________ test_citation_any_role ____________________________ app = warning = <_io.StringIO object at 0x400518ea70> @pytest.mark.sphinx('html', testroot='citation_any_role') def test_citation_any_role(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() cits = {match.group('label') for match in html_citations().finditer(output)} citrefs = {match.group('label') for match in html_citation_refs().finditer(output)} > assert {"App", "Bra"} == cits == citrefs E AssertionError: assert {'App', 'Bra'} == set() E Extra items in the left set: E 'App' E 'Bra' E Use -v to get more diff test/test_citation.py:64: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/citation_any_role # outdir: /tmp/pytest-of-builduser/pytest-0/citation_any_role/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/citation_any_role/refs.bib... parsed 2 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/citation_any_role/_build/html. # warning: ____________________________ test_citation_toctree _____________________________ app = warning = <_io.StringIO object at 0x4004a2c280> @pytest.mark.sphinx('html', testroot='citation_toctree') def test_citation_toctree(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() output1 = (app.outdir / "adoc1.html").read_text() output2 = (app.outdir / "adoc2.html").read_text() > assert len(html_citations(label='1').findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x4005068430> @pytest.mark.sphinx('html', testroot='debug_bibtex_citation') def test_citation_tooltip(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert len(html_citations(label='tes').findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).findall E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='tes') test/test_citation.py:392: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation # outdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/test.bib... parsed 1 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html. # warning: ____________________________ test_citation_tooltip2 ____________________________ app = warning = <_io.StringIO object at 0x40056f0040> @pytest.mark.sphinx('html', testroot='debug_bibtex_citation', confoverrides={'bibtex_tooltips': False}) def test_citation_tooltip2(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert len(html_citations(label='tes').findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).findall E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='tes') test/test_citation.py:403: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation # outdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html # status: Running Sphinx v5.1.1 loading pickled environment... checking bibtex cache... up to date done building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: 0 added, 0 changed, 0 removed looking for now-outdated files... none found preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html. # warning: ____________________________ test_citation_tooltip3 ____________________________ app = warning = <_io.StringIO object at 0x4005206b90> @pytest.mark.sphinx('html', testroot='debug_bibtex_citation', confoverrides={ 'bibtex_tooltips_style': 'xxx_custom_tooltip_xxx'}) def test_citation_tooltip3(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert len(html_citations(label='tes').findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).findall E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='tes') test/test_citation.py:424: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation # outdir: /tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html # status: Running Sphinx v5.1.1 loading pickled environment... checking bibtex cache... up to date done building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: 0 added, 0 changed, 0 removed looking for now-outdated files... none found preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/debug_bibtex_citation/_build/html. # warning: _____________________________ test_duplicate_label _____________________________ app = warning = <_io.StringIO object at 0x40057cf520> @pytest.mark.sphinx('html', testroot='duplicate_label') def test_duplicate_label(app, warning) -> None: # see github issue 14 app.build() assert 'duplicate label "1" for keys "Test" and "Test2"' \ in warning.getvalue() output = (app.outdir / "doc1.html").read_text() output2 = (app.outdir / "doc2.html").read_text() > assert html_citations(label="1").search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x4005d5ab90> @pytest.mark.sphinx('html', testroot='duplicate_citation') def test_duplicate_citation(app, warning) -> None: app.build() warning.seek(0) warnings = list(warning.readlines()) assert len(warnings) == 1 assert 'duplicate citation for key "Test"' in warnings[0] # assure distinct citation ids output = (app.outdir / "index.html").read_text() ids = [match.group('id_') for match in html_citations().finditer(output)] > assert len(ids) == 2 # just to check ids are found E assert 0 == 2 E + where 0 = len([]) test/test_duplicate.py:30: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/duplicate_citation # outdir: /tmp/pytest-of-builduser/pytest-0/duplicate_citation/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/duplicate_citation/test.bib... parsed 1 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 1 warning. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/duplicate_citation/_build/html. # warning: /tmp/pytest-of-builduser/pytest-0/duplicate_citation/index.rst:4: WARNING: duplicate citation for key "Test" ___________________ test_duplicate_nearly_identical_entries ____________________ app = warning = <_io.StringIO object at 0x4005ccaa70> @pytest.mark.sphinx('html', testroot='duplicate_nearly_identical_entries') def test_duplicate_nearly_identical_entries(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() cits = list(html_citations().finditer(output)) cit_refs = list(html_citation_refs().finditer(output)) > assert len(cits) == len(cit_refs) == 2 E assert 0 == 2 E + where 0 = len([]) E + and 2 = len([ assert html_citations(label='Smi').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).search E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='Smi') test/test_duplicate.py:57: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys # outdir: /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/test.bib... parsed 3 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/_build/html. # warning: ____________________ test_duplicate_nearly_identical_keys_2 ____________________ app = warning = <_io.StringIO object at 0x40058ff370> @pytest.mark.sphinx( 'html', testroot='duplicate_nearly_identical_keys', freshenv=True, confoverrides={"bibtex_cite_id": "cite-{bibliography_count}-{key}"}) def test_duplicate_nearly_identical_keys_2(app, warning) -> None: app.build() warning.seek(0) warnings = list(warning.readlines()) assert len(warnings) == 2 assert "duplicate citation id cite-1-test" in warnings[0] assert "duplicate citation id cite-1-test" in warnings[1] output = (app.outdir / "index.html").read_text() # assure both citations and citation references are present assert html_citation_refs(label='Smi').search(output) assert html_citation_refs(label='Pop').search(output) assert html_citation_refs(label='Ein').search(output) > assert html_citations(label='Smi').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).search E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='Smi') test/test_duplicate.py:85: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys # outdir: /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/test.bib... parsed 3 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 2 warnings. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/_build/html. # warning: /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/index.rst:5: WARNING: duplicate citation id cite-1-test /tmp/pytest-of-builduser/pytest-0/duplicate_nearly_identical_keys/index.rst:5: WARNING: duplicate citation id cite-1-test __________________________ test_duplicate_citation_id __________________________ app = warning = <_io.StringIO object at 0x4005a295a0> @pytest.mark.sphinx('html', testroot='duplicate_citation_id') def test_duplicate_citation_id(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() user_ids = {'id1', 'id2', 'id3'} ids = {match.group('id_') for match in html_citations().finditer(output)} refids = {match.group('refid') for match in html_citation_refs().finditer(output)} > assert ids == refids E AssertionError: assert set() == {'id6'} E Extra items in the right set: E 'id6' E Use -v to get more diff test/test_duplicate.py:110: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/duplicate_citation_id # outdir: /tmp/pytest-of-builduser/pytest-0/duplicate_citation_id/_build/html # status: Running Sphinx v5.1.1 checking bibtex cache... out of date parsing bibtex file /tmp/pytest-of-builduser/pytest-0/duplicate_citation_id/test.bib... parsed 1 entries building [mo]: targets for 0 po files that are out of date building [html]: targets for 1 source files that are out of date updating environment: [new config] 1 added, 0 changed, 0 removed reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] index generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/duplicate_citation_id/_build/html. # warning: ______________________________ test_list_citation ______________________________ app = warning = <_io.StringIO object at 0x4005204f70> @pytest.mark.sphinx('html', testroot='list_citation') def test_list_citation(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "index.html").read_text() > assert html_citations(label='1', text='.*Akkerdju.*').search(output) E assert None E + where None = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\((?:)?(?P)?(?:\\( warning = <_io.StringIO object at 0x4005295ab0> @pytest.mark.numpydoc @pytest.mark.sphinx( 'html', testroot='autodoc', confoverrides={ 'extensions': ['sphinxcontrib.bibtex', 'numpydoc'], 'numpydoc_class_members_toctree': False, }) def test_numpydoc(app, warning) -> None: app.build() assert not warning.getvalue() output = (app.outdir / "doc_cite.html").read_text() labels = ['One', 'Two', 'Thr', 'Fou', 'Fiv', 'Six', 'Sev', 'Eig', 'Nin', 'Ten', 'Ele'] titles = ['Een', 'Twee', 'Drie', 'Vier', 'Vijf', 'Zes', 'Zeven', 'Acht', 'Negen', 'Tien', 'Elf'] for label, title in zip(labels, titles): assert len(html_citation_refs(label=label).findall(output)) == 1 > assert len(html_citations(label=label).findall(output)) == 1 E assert 0 == 1 E + where 0 = len([]) E + where [] = ('\n\n\n\n \n \n Page source\n \n\n \n\n \n \n') E + where = re.compile('
(?:)?(?P)?(?:\\(<).findall E + where re.compile('
(?:)?(?P)?(?:\\(<) = html_citations(label='One') test/test_numpydoc.py:24: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: html # srcdir: /tmp/pytest-of-builduser/pytest-0/autodoc # outdir: /tmp/pytest-of-builduser/pytest-0/autodoc/_build/html # status: Running Sphinx v5.1.1 loading pickled environment... checking bibtex cache... up to date done [autosummary] generating autosummary for: doc_cite.rst, doc_footcite.rst, index.rst building [mo]: targets for 0 po files that are out of date building [html]: targets for 3 source files that are out of date updating environment: [extensions changed ('2')] 3 added, 0 changed, 0 removed reading sources... [ 33%] doc_cite reading sources... [ 66%] doc_footcite reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 33%] doc_cite writing output... [ 66%] doc_footcite writing output... [100%] index generating indices... genindex py-modindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in ../../../../tmp/pytest-of-builduser/pytest-0/autodoc/_build/html. # warning: =============================== warnings summary =============================== test/test_autodoc.py: 4 warnings test/test_backrefs.py: 1 warning test/test_bibfiles.py: 8 warnings test/test_bibliography.py: 28 warnings test/test_citation.py: 21 warnings test/test_debug.py: 4 warnings test/test_duplicate.py: 8 warnings test/test_filter.py: 19 warnings test/test_footcite.py: 2 warnings test/test_latex.py: 2 warnings test/test_list.py: 4 warnings test/test_numpydoc.py: 3 warnings test/test_parallel.py: 81 warnings test/test_root_doc.py: 1 warning test/test_sphinx.py: 3 warnings /build/python-sphinxcontrib-bibtex/src/sphinxcontrib-bibtex-2.4.2/src/sphinxcontrib/bibtex/transforms.py:59: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall(). for bibnode in self.document.traverse(bibliography_node): test/test_bibliography.py::test_bibliography_header test/test_bibliography.py::test_bibliography_header test/test_bibliography.py::test_bibliography_empty_no_header test/test_bibliography.py::test_bibliography_empty_no_header test/test_bibliography.py::test_bibliography_multi_foot /build/python-sphinxcontrib-bibtex/src/sphinxcontrib-bibtex-2.4.2/src/sphinxcontrib/bibtex/domain.py:224: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later. settings = docutils.frontend.OptionParser( test/test_bibliography.py: 340 warnings /usr/lib/python3.10/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later. option = self.option_class(*args, **kwargs) test/test_natbib.py::test_natbib test/test_natbib.py::test_natbib /build/python-sphinxcontrib-bibtex/src/sphinxcontrib-bibtex-2.4.2/test/natbib.py:411: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 2.0. refnode += nodes.Text(url, url) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/test_autodoc.py::test_autodoc - assert 0 == 1 FAILED test/test_backrefs.py::test_backrefs - assert None FAILED test/test_bibfiles.py::test_bibfiles_out_of_date - assert None FAILED test/test_bibfiles.py::test_bibfiles_multiple_macros - assert None FAILED test/test_bibfiles.py::test_bibfiles_multiple_keys - assert None FAILED test/test_bibliography.py::test_bibliography_style_default - Assertion... FAILED test/test_bibliography.py::test_bibliography_style_label_1 - assert 0 ... FAILED test/test_bibliography.py::test_bibliography_key_prefix - AssertionErr... FAILED test/test_bibliography.py::test_bibliography_label_prefix_1 - Assertio... FAILED test/test_bibliography.py::test_bibliography_label_prefix_2 - Assertio... FAILED test/test_bibliography.py::test_bibliography_order_unsorted - assert None FAILED test/test_bibliography.py::test_bibliography_multi_foot - assert 0 == 1 FAILED test/test_bibliography.py::test_bibliography_content - AssertionError:... FAILED test/test_bibliography.py::test_bibliography_url - assert None is not ... FAILED test/test_bibliography.py::test_bibliography_custom_ids - assert None ... FAILED test/test_citation.py::test_citation_multiple_keys - AssertionError: a... FAILED test/test_citation.py::test_citation_any_role - AssertionError: assert... FAILED test/test_citation.py::test_citation_toctree - assert 0 == 1 FAILED test/test_citation.py::test_citation_tooltip - assert 0 == 1 FAILED test/test_citation.py::test_citation_tooltip2 - assert 0 == 1 FAILED test/test_citation.py::test_citation_tooltip3 - assert 0 == 1 FAILED test/test_duplicate.py::test_duplicate_label - assert None FAILED test/test_duplicate.py::test_duplicate_citation - assert 0 == 2 FAILED test/test_duplicate.py::test_duplicate_nearly_identical_entries - asse... FAILED test/test_duplicate.py::test_duplicate_nearly_identical_keys_1 - asser... FAILED test/test_duplicate.py::test_duplicate_nearly_identical_keys_2 - asser... FAILED test/test_duplicate.py::test_duplicate_citation_id - AssertionError: a... FAILED test/test_list.py::test_list_citation - assert None FAILED test/test_numpydoc.py::test_numpydoc - assert 0 == 1 ============ 29 failed, 61 passed, 536 warnings in 83.05s (0:01:23) ============ ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix4/build receiving incremental file list python-sphinxcontrib-bibtex-2.4.2-1-riscv64-build.log python-sphinxcontrib-bibtex-2.4.2-1-riscv64-check.log sent 62 bytes received 8,360 bytes 2,406.29 bytes/sec total size is 96,212 speedup is 11.42