==> Building on alakazam ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-myst-parser ./ PKGBUILD 1,413 100% 0.00kB/s 0:00:00 1,413 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-myst-parser-1.0.0-5.log 253 100% 247.07kB/s 0:00:00 253 100% 247.07kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,123 bytes received 107 bytes 492.00 bytes/sec total size is 1,608 speedup is 1.31 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root7 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change Download Size core/openssl 3.0.9-1 3.1.1-1 0.03 MiB 4.93 MiB Total Download Size: 4.93 MiB Total Installed Size: 9.61 MiB Net Upgrade Size: 0.03 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... openssl-3.1.1-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading openssl... [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root7]...done ==> Making package: python-myst-parser 1.0.0-5 (Sat Jun 17 16:28:49 2023) ==> Retrieving sources...  -> Downloading python-myst-parser-1.0.0.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 40979 0 40979 0 0 39695 0 --:--:-- 0:00:01 --:--:-- 39695 100 794k 0 794k 0 0 560k 0 --:--:-- 0:00:01 --:--:-- 1969k ==> Validating source files with sha512sums... python-myst-parser-1.0.0.tar.gz ... Passed ==> Making package: python-myst-parser 1.0.0-5 (Sat Jun 17 16:29:05 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (30) New Version Net Change Download Size core/libnsl 2.0.0-3 0.06 MiB 0.02 MiB extra/libyaml 0.2.5-2 0.15 MiB 0.06 MiB extra/python-babel 2.12.1-1 31.41 MiB 6.52 MiB extra/python-chardet 5.1.0-3 3.02 MiB 0.25 MiB extra/python-idna 3.4-3 0.71 MiB 0.09 MiB extra/python-imagesize 1.4.1-4 0.05 MiB 0.01 MiB extra/python-markupsafe 2.1.2-3 0.07 MiB 0.02 MiB extra/python-mdurl 0.1.2-4 0.06 MiB 0.02 MiB extra/python-packaging 23.1-1 0.47 MiB 0.09 MiB extra/python-pytz 2023.3-1 0.17 MiB 0.05 MiB extra/python-requests 2.28.2-4 0.61 MiB 0.12 MiB extra/python-snowballstemmer 2.2.0-5 2.82 MiB 0.22 MiB extra/python-sphinx-alabaster-theme 0.7.13-4 0.05 MiB 0.02 MiB extra/python-sphinxcontrib-applehelp 1.0.4-3 0.26 MiB 0.03 MiB extra/python-sphinxcontrib-devhelp 1.0.2-11 0.13 MiB 0.03 MiB extra/python-sphinxcontrib-htmlhelp 2.0.1-3 0.18 MiB 0.04 MiB extra/python-sphinxcontrib-jsmath 1.0.1-15 0.02 MiB 0.01 MiB extra/python-sphinxcontrib-qthelp 1.0.3-11 0.17 MiB 0.03 MiB extra/python-sphinxcontrib-serializinghtml 1.1.5-6 0.14 MiB 0.03 MiB extra/python-uc-micro-py 1.0.2-1 0.02 MiB 0.01 MiB extra/python-urllib3 1.26.15-1 1.30 MiB 0.23 MiB core/python 3.11.3-1 104.68 MiB 17.11 MiB extra/python-docutils 1:0.20.1-1 5.72 MiB 0.88 MiB extra/python-jinja 1:3.1.2-4 1.82 MiB 0.29 MiB extra/python-markdown-it-py 2.2.0-3 0.67 MiB 0.14 MiB extra/python-mdit_py_plugins 0.3.5-3 0.39 MiB 0.08 MiB extra/python-pygments 2.15.1-1 13.57 MiB 2.22 MiB extra/python-sphinx 7.0.1-1 17.57 MiB 2.04 MiB extra/python-typing_extensions 4.6.3-1 0.36 MiB 0.06 MiB extra/python-yaml 6.0-3 0.93 MiB 0.18 MiB Total Download Size: 30.91 MiB Total Installed Size: 187.56 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-3.11.3-1-riscv64 downloading... python-babel-2.12.1-1-any downloading... python-pygments-2.15.1-1-any downloading... python-sphinx-7.0.1-1-any downloading... python-docutils-1:0.20.1-1-any downloading... python-jinja-1:3.1.2-4-any downloading... python-chardet-5.1.0-3-any downloading... python-urllib3-1.26.15-1-any downloading... python-snowballstemmer-2.2.0-5-any downloading... python-yaml-6.0-3-riscv64 downloading... python-markdown-it-py-2.2.0-3-any downloading... python-requests-2.28.2-4-any downloading... python-packaging-23.1-1-any downloading... python-idna-3.4-3-any downloading... python-mdit_py_plugins-0.3.5-3-any downloading... python-typing_extensions-4.6.3-1-any downloading... libyaml-0.2.5-2-riscv64 downloading... python-pytz-2023.3-1-any downloading... python-sphinxcontrib-htmlhelp-2.0.1-3-any downloading... python-sphinxcontrib-applehelp-1.0.4-3-any downloading... python-sphinxcontrib-qthelp-1.0.3-11-any downloading... python-sphinxcontrib-serializinghtml-1.1.5-6-any downloading... python-sphinxcontrib-devhelp-1.0.2-11-any downloading... libnsl-2.0.0-3-riscv64 downloading... python-markupsafe-2.1.2-3-riscv64 downloading... python-mdurl-0.1.2-4-any downloading... python-sphinx-alabaster-theme-0.7.13-4-any downloading... python-imagesize-1.4.1-4-any downloading... python-sphinxcontrib-jsmath-1.0.1-15-any downloading... python-uc-micro-py-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 python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-docutils... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support [pending] installing python-uc-micro-py... installing python-mdurl... installing python-markdown-it-py... Optional dependencies for python-markdown-it-py python-mdit_py_plugins: core plugins [pending] installing python-mdit_py_plugins... installing python-pygments... installing python-pytz... installing python-babel... installing python-imagesize... installing python-packaging... installing python-urllib3... Optional dependencies for python-urllib3 python-brotli: Brotli support python-certifi: security support python-cryptography: security support python-idna: security support [pending] python-pyopenssl: security support python-pysocks: SOCKS support 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-typing_extensions... installing libyaml... installing python-yaml... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (15) New Version Net Change Download Size extra/python-iniconfig 2.0.0-4 0.04 MiB 0.01 MiB extra/python-pluggy 1.0.0-4 0.13 MiB 0.03 MiB extra/python-pyproject-hooks 1.0.0-5 0.09 MiB 0.02 MiB extra/python-pytest-datadir 1.4.1-2 0.01 MiB 0.01 MiB extra/python-soupsieve 2.4.1-1 0.46 MiB 0.08 MiB extra/python-beautifulsoup4 4.12.2-1 1.68 MiB 0.27 MiB extra/python-build 0.10.0-4 0.68 MiB 0.11 MiB extra/python-flit-core 3.9.0-1 0.26 MiB 0.06 MiB extra/python-installer 0.7.0-3 0.82 MiB 0.12 MiB extra/python-linkify-it-py 2.0.2-1 0.15 MiB 0.04 MiB extra/python-pytest 7.3.1-4 3.97 MiB 0.67 MiB extra/python-pytest-param-files 0.3.5-2 0.04 MiB 0.01 MiB extra/python-pytest-regressions 2.4.2-2 0.21 MiB 0.04 MiB extra/python-sphinx-pytest 0.0.5-2 0.03 MiB 0.01 MiB extra/python-wheel 0.40.0-3 0.28 MiB 0.06 MiB Total Download Size: 1.55 MiB Total Installed Size: 8.85 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-pytest-7.3.1-4-any downloading... python-beautifulsoup4-4.12.2-1-any downloading... python-installer-0.7.0-3-any downloading... python-build-0.10.0-4-any downloading... python-soupsieve-2.4.1-1-any downloading... python-wheel-0.40.0-3-any downloading... python-flit-core-3.9.0-1-any downloading... python-pytest-regressions-2.4.2-2-any downloading... python-linkify-it-py-2.0.2-1-any downloading... python-pluggy-1.0.0-4-any downloading... python-pyproject-hooks-1.0.0-5-any downloading... python-iniconfig-2.0.0-4-any downloading... python-pytest-param-files-0.3.5-2-any downloading... python-sphinx-pytest-0.0.5-2-any downloading... python-pytest-datadir-1.4.1-2-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-flit-core... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-soupsieve... installing python-beautifulsoup4... Optional dependencies for python-beautifulsoup4 python-chardet: to autodetect character encodings [installed] python-lxml: alternative HTML parser python-html5lib: alternative HTML parser installing python-linkify-it-py... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-pytest-param-files... installing python-pytest-datadir... installing python-pytest-regressions... installing python-sphinx-pytest... [?25h==> Retrieving sources...  -> Found python-myst-parser-1.0.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-myst-parser-1.0.0.tar.gz with bsdtar ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... Successfully built myst_parser-1.0.0-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 rootdir: /build/python-myst-parser/src/MyST-Parser-1.0.0 configfile: pyproject.toml plugins: regressions-2.4.2, datadir-1.4.1, pytest_param_files-0.3.5, sphinx_pytest-0.0.5 collected 1074 items / 311 deselected / 763 selected tests/test_anchors.py . [ 0%] tests/test_docutils.py ........... [ 1%] tests/test_inventory.py .............. [ 3%] tests/test_commonmark/test_commonmark.py .............s................. [ 7%] ..................................s.s................................... [ 16%] ........................................................................ [ 26%] ........................................................................ [ 35%] ........................................................................ [ 45%] ........................................................................ [ 54%] ........................................................................ [ 64%] ........................................................................ [ 73%] ........................................................................ [ 82%] .......................................... [ 88%] tests/test_html/test_html_to_nodes.py ................. [ 90%] tests/test_html/test_parse_html.py ..................... [ 93%] tests/test_renderers/test_error_reporting.py ................. [ 95%] tests/test_renderers/test_include_directive.py ........ [ 96%] tests/test_renderers/test_myst_refs.py FFFFFFFFF [ 97%] tests/test_renderers/test_parse_directives.py ................ [100%] =================================== FAILURES =================================== ___________________________ test_parse[null--False] ____________________________ test_name = 'null', text = '', should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError _______________________ test_parse[missing-[](ref)-True] _______________________ test_name = 'missing', text = '[](ref)', should_warn = True sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError _______________________ test_parse[doc-[](index)-False] ________________________ test_name = 'doc', text = '[](index)', should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError ______________ test_parse[doc_with_extension-[](index.md)-False] _______________ test_name = 'doc_with_extension', text = '[](index.md)', should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError _________________ test_parse[doc_nested-[*text*](index)-False] _________________ test_name = 'doc_nested', text = '[*text*](index)', should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError ________________ test_parse[ref-(ref)=\n# Title\n[](ref)-False] ________________ test_name = 'ref', text = '(ref)=\n# Title\n[](ref)', should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError _________ test_parse[ref_nested-(ref)=\n# Title\n[*text*](ref)-False] __________ test_name = 'ref_nested', text = '(ref)=\n# Title\n[*text*](ref)' should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError ___________ test_parse[duplicate-(index)=\n# Title\n[](index)-True] ____________ test_name = 'duplicate', text = '(index)=\n# Title\n[](index)' should_warn = True sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError _______ test_parse[ref_colon-(ref:colon)=\n# Title\n[](ref:colon)-False] _______ test_name = 'ref_colon', text = '(ref:colon)=\n# Title\n[](ref:colon)' should_warn = False sphinx_doctree = file_regression = @pytest.mark.parametrize( "test_name,text,should_warn", [ ("null", "", False), ("missing", "[](ref)", True), ("doc", "[](index)", False), ("doc_with_extension", "[](index.md)", False), ("doc_nested", "[*text*](index)", False), ("ref", "(ref)=\n# Title\n[](ref)", False), ("ref_nested", "(ref)=\n# Title\n[*text*](ref)", False), ("duplicate", "(index)=\n# Title\n[](index)", True), ("ref_colon", "(ref:colon)=\n# Title\n[](ref:colon)", False), ], ) def test_parse( test_name: str, text: str, should_warn: bool, sphinx_doctree: CreateDoctree, file_regression, ): sphinx_doctree.set_conf({"extensions": ["myst_parser"]}) > result = sphinx_doctree(text, "index.md") tests/test_renderers/test_myst_refs.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:151: in __call__ ).build() /usr/lib/python3.11/site-packages/sphinx_pytest/plugin.py:77: in build self._app.build() /usr/lib/python3.11/site-packages/sphinx/testing/util.py:163: in build super().build(force_all, filenames) /usr/lib/python3.11/site-packages/sphinx/application.py:351: in build self.builder.build_update() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:294: in build_update self.build(to_build, /usr/lib/python3.11/site-packages/sphinx_pytest/builders.py:27: in build self.read() /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:418: in read self._read_serial(docnames) /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:439: in _read_serial self.read_doc(docname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = docname = 'index' def read_doc(self, docname: str, *, _cache: bool = True) -> None: """Parse a file and add/update inventory entries for the doctree.""" self.env.prepare_settings(docname) # Add confdir/docutils.conf to dependencies list if exists docutilsconf = path.join(self.confdir, 'docutils.conf') if path.isfile(docutilsconf): self.env.note_dependency(docutilsconf) filename = self.env.doc2path(docname) filetype = get_filetype(self.app.config.source_suffix, filename) publisher = self.app.registry.get_publisher(self.app, filetype) # record_dependencies is mutable even though it is in settings, # explicitly re-initialise for each document publisher.settings.record_dependencies = DependencyList() with sphinx_domains(self.env), rst.default_role(docname, self.config.default_role): # set up error_handler for the target document codecs.register_error('sphinx', UnicodeDecodeErrorHandler(docname)) # type: ignore publisher.set_source(source_path=filename) publisher.publish() doctree = publisher.document # store time of reading, for outdated files detection # (Some filesystems have coarse timestamp resolution; # therefore time.time() can be older than filesystem's timestamp. # For example, FAT32 has 2sec timestamp resolution.) self.env.all_docs[docname] = max(time.time(), path.getmtime(self.env.doc2path(docname))) # cleanup self.env.temp_data.clear() self.env.ref_context.clear() > self.write_doctree(docname, doctree, _cache=_cache) E TypeError: DoctreeBuilder.write_doctree() got an unexpected keyword argument '_cache' /usr/lib/python3.11/site-packages/sphinx/builders/__init__.py:509: TypeError =========================== short test summary info ============================ FAILED tests/test_renderers/test_myst_refs.py::test_parse[null--False] - Type... FAILED tests/test_renderers/test_myst_refs.py::test_parse[missing-[](ref)-True] FAILED tests/test_renderers/test_myst_refs.py::test_parse[doc-[](index)-False] FAILED tests/test_renderers/test_myst_refs.py::test_parse[doc_with_extension-[](index.md)-False] FAILED tests/test_renderers/test_myst_refs.py::test_parse[doc_nested-[*text*](index)-False] FAILED tests/test_renderers/test_myst_refs.py::test_parse[ref-(ref)=\n# Title\n[](ref)-False] FAILED tests/test_renderers/test_myst_refs.py::test_parse[ref_nested-(ref)=\n# Title\n[*text*](ref)-False] FAILED tests/test_renderers/test_myst_refs.py::test_parse[duplicate-(index)=\n# Title\n[](index)-True] FAILED tests/test_renderers/test_myst_refs.py::test_parse[ref_colon-(ref:colon)=\n# Title\n[](ref:colon)-False] === 9 failed, 751 passed, 3 skipped, 311 deselected, 3339 warnings in 16.05s === ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root7/build receiving incremental file list python-myst-parser-1.0.0-5-riscv64-build.log python-myst-parser-1.0.0-5-riscv64-check.log sent 62 bytes received 3,073 bytes 1,254.00 bytes/sec total size is 41,146 speedup is 13.12