==> Building on P ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-sybil ./ PKGBUILD 764 100% 0.00kB/s 0:00:00 764 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2) sent 578 bytes received 82 bytes 1,320.00 bytes/sec total size is 764 speedup is 1.16 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix23 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] -> [felix23]...done ==> Making package: python-sybil 3.0.0-1 (Tue Feb 15 17:38:48 2022) ==> Retrieving sources...  -> Downloading python-sybil-3.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 100 141 100 141 0 0 731 0 --:--:-- --:--:-- --:--:-- 730 100 133 100 133 0 0 327 0 --:--:-- --:--:-- --:--:-- 327 100 33930 0 33930 0 0 49878 0 --:--:-- --:--:-- --:--:-- 49878 ==> Validating source files with sha512sums... python-sybil-3.0.0.tar.gz ... Passed ==> Making package: python-sybil 3.0.0-1 (Tue 15 Feb 2022 05:39:03 PM CET) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (2) New Version Net Change core/libnsl 2.0.0-1 0.06 MiB core/python 3.10.1-2 79.11 MiB Total Installed Size: 79.17 MiB :: Proceed with installation? [Y/n] 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 [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (15) New Version Net Change community/python-apipkg 2.1.0-1 0.03 MiB extra/python-appdirs 1.4.4-6 0.07 MiB extra/python-attrs 21.4.0-1 0.45 MiB community/python-importlib-metadata 4.8.1-3 0.15 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-more-itertools 8.10.0-4 0.32 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-packaging 21.0-1 0.26 MiB community/python-pluggy 0.13.1-8 0.12 MiB community/python-py 1.11.0-1 0.71 MiB extra/python-pyparsing 2.4.7-6 0.72 MiB community/python-toml 0.10.2-7 0.14 MiB community/python-zipp 3.7.0-1 0.03 MiB community/python-pytest 6.2.5-3 2.50 MiB extra/python-setuptools 1:59.1.0-1 2.95 MiB Total Installed Size: 8.53 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-appdirs... installing python-more-itertools... installing python-ordered-set... installing python-pyparsing... installing python-packaging... installing python-setuptools... installing python-attrs... installing python-iniconfig... installing python-zipp... installing python-importlib-metadata... installing python-pluggy... installing python-apipkg... installing python-py... installing python-toml... installing python-pytest... [?25h==> Retrieving sources...  -> Found python-sybil-3.0.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-sybil-3.0.0.tar.gz with bsdtar ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/sybil copying sybil/python.py -> build/lib/sybil copying sybil/document.py -> build/lib/sybil copying sybil/typing.py -> build/lib/sybil copying sybil/sybil.py -> build/lib/sybil copying sybil/region.py -> build/lib/sybil copying sybil/example.py -> build/lib/sybil copying sybil/__init__.py -> build/lib/sybil creating build/lib/sybil/integration copying sybil/integration/unittest.py -> build/lib/sybil/integration copying sybil/integration/pytest.py -> build/lib/sybil/integration copying sybil/integration/__init__.py -> build/lib/sybil/integration creating build/lib/sybil/parsers copying sybil/parsers/skip.py -> build/lib/sybil/parsers copying sybil/parsers/codeblock.py -> build/lib/sybil/parsers copying sybil/parsers/doctest.py -> build/lib/sybil/parsers copying sybil/parsers/__init__.py -> build/lib/sybil/parsers copying sybil/parsers/capture.py -> build/lib/sybil/parsers running egg_info creating sybil.egg-info writing sybil.egg-info/PKG-INFO writing dependency_links to sybil.egg-info/dependency_links.txt writing requirements to sybil.egg-info/requires.txt writing top-level names to sybil.egg-info/top_level.txt writing manifest file 'sybil.egg-info/SOURCES.txt' reading manifest file 'sybil.egg-info/SOURCES.txt' writing manifest file 'sybil.egg-info/SOURCES.txt' ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 -- /usr/bin/python cachedir: .pytest_cache rootdir: /build/python-sybil/src/sybil-3.0.0, configfile: setup.cfg collecting ... collected 112 items docs/example-skip.rst::line:1,column:1 PASSED [ 0%] docs/example-skip.rst::line:5,column:1 PASSED [ 1%] docs/example-skip.rst::line:10,column:1 PASSED [ 2%] docs/example-skip.rst::line:12,column:1 PASSED [ 3%] docs/example-skip.rst::line:13,column:1 PASSED [ 4%] docs/example-skip.rst::line:15,column:1 PASSED [ 5%] docs/example-skip.rst::line:17,column:1 PASSED [ 6%] docs/example-skip.rst::line:23,column:1 PASSED [ 7%] docs/example-skip.rst::line:25,column:1 PASSED [ 8%] docs/example.rst::line:6,column:1 PASSED [ 8%] docs/example.rst::line:12,column:1 PASSED [ 9%] docs/example.rst::line:21,column:1 PASSED [ 10%] docs/example.rst::line:26,column:1 PASSED [ 11%] docs/parsers.rst::line:83,column:1 PASSED [ 12%] docs/parsers.rst::line:104,column:1 PASSED [ 13%] docs/parsers.rst::line:115,column:1 PASSED [ 14%] docs/parsers.rst::line:131,column:1 PASSED [ 15%] docs/parsers.rst::line:138,column:1 PASSED [ 16%] docs/parsers.rst::line:157,column:1 PASSED [ 16%] docs/parsers.rst::line:179,column:1 PASSED [ 17%] docs/parsers.rst::line:192,column:1 PASSED [ 18%] docs/parsers.rst::line:203,column:1 PASSED [ 19%] docs/parsers.rst::line:209,column:1 PASSED [ 20%] docs/parsers.rst::line:222,column:1 PASSED [ 21%] docs/parsers.rst::line:229,column:1 PASSED [ 22%] docs/parsers.rst::line:230,column:1 PASSED [ 23%] docs/parsers.rst::line:297,column:1 PASSED [ 24%] docs/parsers.rst::line:325,column:1 PASSED [ 25%] docs/parsers.rst::line:355,column:1 PASSED [ 25%] docs/parsers.rst::line:367,column:1 PASSED [ 26%] docs/parsers.rst::line:373,column:1 PASSED [ 27%] tests/test_capture.py::test_basic PASSED [ 28%] tests/test_capture.py::test_directive_indent_beyond_block PASSED [ 29%] tests/test_capture.py::test_directive_indent_equal_to_block PASSED [ 30%] tests/test_capture.py::test_capture_codeblock PASSED [ 31%] tests/test_codeblock.py::test_basic PASSED [ 32%] tests/test_codeblock.py::test_other_language_composition_pass PASSED [ 33%] tests/test_codeblock.py::test_other_language_composition_fail PASSED [ 33%] tests/test_codeblock.py::test_other_language_no_evaluator PASSED [ 34%] tests/test_codeblock.py::test_other_language_inheritance PASSED [ 35%] tests/test_codeblock.py::test_no_future_imports PASSED [ 36%] tests/test_codeblock.py::test_single_future_import PASSED [ 37%] tests/test_codeblock.py::test_multiple_future_imports PASSED [ 38%] tests/test_codeblock.py::test_functional_future_imports PASSED [ 39%] tests/test_codeblock.py::test_windows_line_endings PASSED [ 40%] tests/test_doc_example.py::test_pytest PASSED [ 41%] tests/test_doc_example.py::test_unittest PASSED [ 41%] tests/test_doctest.py::test_pass PASSED [ 42%] tests/test_doctest.py::test_fail PASSED [ 43%] tests/test_doctest.py::test_fail_with_options PASSED [ 44%] tests/test_doctest.py::test_literals PASSED [ 45%] tests/test_doctest.py::test_min_indent PASSED [ 46%] tests/test_doctest.py::test_tabs PASSED [ 47%] tests/test_doctest.py::test_irrelevant_tabs PASSED [ 48%] tests/test_doctest.py::test_unicode PASSED [ 49%] tests/test_functional.py::test_pytest PASSED [ 50%] tests/test_functional.py::test_unittest PASSED [ 50%] tests/test_functional.py::test_filter_everything[pytest] PASSED [ 51%] tests/test_functional.py::test_filter_everything[unittest] PASSED [ 52%] tests/test_functional.py::test_filter_just_pattern[pytest] PASSED [ 53%] tests/test_functional.py::test_filter_just_pattern[unittest] PASSED [ 54%] tests/test_functional.py::test_filter_fnmatch_pattern[pytest] PASSED [ 55%] tests/test_functional.py::test_filter_fnmatch_pattern[unittest] PASSED [ 56%] tests/test_functional.py::test_filter_just_filenames[pytest] PASSED [ 57%] tests/test_functional.py::test_filter_just_filenames[unittest] PASSED [ 58%] tests/test_functional.py::test_filter_directory[pytest] PASSED [ 58%] tests/test_functional.py::test_filter_directory[unittest] PASSED [ 59%] tests/test_functional.py::test_filter_directory_with_excludes[pytest] PASSED [ 60%] tests/test_functional.py::test_filter_directory_with_excludes[unittest] PASSED [ 61%] tests/test_functional.py::test_filter_filenames_and_excludes[pytest] PASSED [ 62%] tests/test_functional.py::test_filter_filenames_and_excludes[unittest] PASSED [ 63%] tests/test_functional.py::test_filter_exclude_by_name[pytest] PASSED [ 64%] tests/test_functional.py::test_filter_exclude_by_name[unittest] PASSED [ 65%] tests/test_functional.py::test_filter_include_filenames[pytest] PASSED [ 66%] tests/test_functional.py::test_filter_include_filenames[unittest] PASSED [ 66%] tests/test_functional.py::test_filter_globs[pytest] PASSED [ 67%] tests/test_functional.py::test_filter_globs[unittest] PASSED [ 68%] tests/test_functional.py::test_filter_multiple_patterns[pytest] PASSED [ 69%] tests/test_functional.py::test_filter_multiple_patterns[unittest] PASSED [ 70%] tests/test_functional.py::test_skips[pytest] PASSED [ 71%] tests/test_functional.py::test_skips[unittest] PASSED [ 72%] tests/test_functional.py::test_modules[pytest] PASSED [ 73%] tests/test_functional.py::test_modules[unittest] PASSED [ 74%] tests/test_functional.py::test_modules_not_importable_pytest PASSED [ 75%] tests/test_functional.py::test_modules_not_importable_unittest FAILED [ 75%] tests/test_functional.py::test_package_and_docs[pytest] PASSED [ 76%] tests/test_functional.py::test_package_and_docs[unittest] PASSED [ 77%] tests/test_helpers.py::test_finder PASSED [ 78%] tests/test_helpers.py::test_import_cleanup PASSED [ 79%] tests/test_skip.py::test_basic PASSED [ 80%] tests/test_skip.py::test_conditional_edge_cases PASSED [ 81%] tests/test_skip.py::test_conditional_full PASSED [ 82%] tests/test_skip.py::test_bad PASSED [ 83%] tests/test_sybil.py::TestRegion::test_repr PASSED [ 83%] tests/test_sybil.py::TestExample::test_repr PASSED [ 84%] tests/test_sybil.py::TestExample::test_evaluate_okay PASSED [ 85%] tests/test_sybil.py::TestExample::test_evaluate_not_okay PASSED [ 86%] tests/test_sybil.py::TestExample::test_evaluate_raises_exception PASSED [ 87%] tests/test_sybil.py::TestDocument::test_add PASSED [ 88%] tests/test_sybil.py::TestDocument::test_add_no_overlap PASSED [ 89%] tests/test_sybil.py::TestDocument::test_add_out_of_order PASSED [ 90%] tests/test_sybil.py::TestDocument::test_add_adjacent PASSED [ 91%] tests/test_sybil.py::TestDocument::test_add_before_start PASSED [ 91%] tests/test_sybil.py::TestDocument::test_add_after_end PASSED [ 92%] tests/test_sybil.py::TestDocument::test_add_overlaps_with_previous PASSED [ 93%] tests/test_sybil.py::TestDocument::test_add_overlaps_with_next PASSED [ 94%] tests/test_sybil.py::TestDocument::test_example_path PASSED [ 95%] tests/test_sybil.py::TestDocument::test_example_line_and_column PASSED [ 96%] tests/test_sybil.py::TestSybil::test_parse PASSED [ 97%] tests/test_sybil.py::TestSybil::test_explicit_encoding PASSED [ 98%] tests/test_sybil.py::TestSybil::test_augment_document_mapping PASSED [ 99%] tests/test_sybil.py::test_namespace FAILED [100%] =================================== FAILURES =================================== _____________________ test_modules_not_importable_unittest _____________________ tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_modules_not_importable_un0') capsys = <_pytest.capture.CaptureFixture object at 0x4003691b70> def test_modules_not_importable_unittest(tmpdir: local, capsys: CaptureFixture[str]): # NB: no append to sys.path results = clone_and_run_modules_tests(tmpdir, capsys, UNITTEST) assert results.total == 5, results.out.text assert results.failures == 0, results.out.text assert results.errors == 5, results.out.text a_py = tmpdir/'modules'/'a.py' b_py = tmpdir/'modules'/'b.py' out = results.out out.then_find(f'ERROR: {a_py},line:3,column:1') out.then_find(f"ImportError: 'a' not importable from {tmpdir/'modules'/'a.py'} as:") out.then_find("ModuleNotFoundError: No module named 'a'") > out.then_find(f'ERROR: {b_py},line:2,column:1') tests/test_functional.py:329: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = substring = 'ERROR: /tmp/pytest-of-builduser/pytest-0/test_modules_not_importable_un0/modules/b.py,line:2,column:1' def then_find(self, substring): > assert substring in self.text[self.index:], self.text[self.index:] E AssertionError: ModuleNotFoundError: No module named 'a' E E ====================================================================== E ERROR: /tmp/pytest-of-builduser/pytest-0/test_modules_not_importable_un0/modules/a.py,line:7,column:1 E ---------------------------------------------------------------------- E Traceback (most recent call last): E File "/build/python-sybil/src/sybil-3.0.0/sybil/integration/unittest.py", line 17, in runTest E self.example.evaluate() E File "/build/python-sybil/src/sybil-3.0.0/sybil/example.py", line 64, in evaluate E result = evaluator(self) E File "/build/python-sybil/src/sybil-3.0.0/sybil/document.py", line 142, in evaluator E module = import_path(Path(example.path)) E File "/build/python-sybil/src/sybil-3.0.0/sybil/python.py", line 40, in import_path E raise ImportError( E ImportError: 'a' not importable from /tmp/pytest-of-builduser/pytest-0/test_modules_not_importable_un0/modules/a.py as: E ModuleNotFoundError: No module named 'a' E E ---------------------------------------------------------------------- E Ran 5 tests in 0.013s E E FAILED (errors=5) tests/helpers.py:67: AssertionError ________________________________ test_namespace ________________________________ capsys = <_pytest.capture.CaptureFixture object at 0x40036919f0> def test_namespace(capsys): sybil = Sybil([parse], path='./samples') documents = [sybil.parse(p) for p in sybil.path.glob('sample*.txt')] actual = [] for document in documents: for example in document: print(split(example.path)[-1], example.line) example.evaluate() actual.append(( split(example.path)[-1], example.line, document.namespace['parsed'].copy(), )) out, _ = capsys.readouterr() > assert out.split('\n') == [ 'sample1.txt 1', '[0]', 'sample1.txt 3', '[0, 14]', 'sample2.txt 1', '[0]', 'sample2.txt 3', '[0, 13]', '' ] E AssertionError: assert ['sample2.txt...', '[0]', ...] == ['sample1.txt...', '[0]', ...] E At index 0 diff: 'sample2.txt 1' != 'sample1.txt 1' E Full diff: E [ E + 'sample2.txt 1', E + '[0]', E + 'sample2.txt 3', E + '[0, 13]',... E E ...Full output truncated (11 lines hidden), use '-vv' to show tests/test_sybil.py:258: AssertionError =========================== short test summary info ============================ FAILED tests/test_functional.py::test_modules_not_importable_unittest - Asser... FAILED tests/test_sybil.py::test_namespace - AssertionError: assert ['sample2... ======================== 2 failed, 110 passed in 4.84s ========================= ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix23/build Shared connection to manectric closed. receiving incremental file list python-sybil-3.0.0-1-riscv64-build.log python-sybil-3.0.0-1-riscv64-check.log sent 62 bytes received 3,204 bytes 2,177.33 bytes/sec total size is 15,197 speedup is 4.65