===> Testing for py38-pytest-mutagen-1.3 ============================= test session starts ============================== platform freebsd12 -- Python 3.8.3, pytest-4.5.0, py-1.8.1, pluggy-0.13.1 -- /usr/local/bin/python3.8 cachedir: .pytest_cache pytest-mutagen-1.3 : Mutations disabled hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/.hypothesis/examples') rootdir: /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c plugins: mutagen-1.3, asyncio-0.10.0, trio-0.6.0, hypothesis-5.19.0 collecting ... collected 21 items examples/separate_files/test_file.py::test_Toto PASSED [ 4%] examples/separate_files/test_file.py::test_f PASSED [ 9%] tests/test_examples.py::test_BST_mutations FAILED [ 14%] tests/test_examples.py::test_short_example FAILED [ 19%] tests/test_examples.py::test_separate_files FAILED [ 23%] tests/test_mutagen.py::test_mutant_of_with_file PASSED [ 28%] tests/test_mutagen.py::test_mutant_of_no_file PASSED [ 33%] tests/test_mutagen.py::test_mutant_of_several_files PASSED [ 38%] tests/test_mutagen.py::test_mutant_of_linked_file PASSED [ 42%] tests/test_mutagen.py::test_mutant_of_several_linked_files PASSED [ 47%] tests/test_mutagen.py::test_mutant_of_bad_type PASSED [ 52%] tests/test_mutagen.py::test_has_mutant_with_file PASSED [ 57%] tests/test_mutagen.py::test_has_mutant_no_file PASSED [ 61%] tests/test_mutagen.py::test_has_mutant_several_files PASSED [ 66%] tests/test_mutagen.py::test_trivial_mutations_list_only PASSED [ 71%] tests/test_mutagen.py::test_trivial_mutations_function_only PASSED [ 76%] tests/test_mutagen.py::test_trivial_mutations_list_and_file PASSED [ 80%] tests/test_mutagen.py::test_trivial_mutations_with_object PASSED [ 85%] tests/test_mutagen.py::test_trivial_mutations_all PASSED [ 90%] tests/test_mutagen.py::test_active_mutant_correct PASSED [ 95%] tests/test_mutagen.py::test_mut_correct PASSED [100%] =================================== FAILURES =================================== ______________________________ test_BST_mutations ______________________________ testdir = def test_BST_mutations(testdir): > testdir.copy_example("BST_mutations.py") /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = name = 'BST_mutations.py' def copy_example(self, name=None): import warnings from _pytest.warning_types import PYTESTER_COPY_EXAMPLE warnings.warn(PYTESTER_COPY_EXAMPLE, stacklevel=2) example_dir = self.request.config.getini("pytester_example_dir") if example_dir is None: raise ValueError("pytester_example_dir is unset, can't copy examples") example_dir = self.request.config.rootdir.join(example_dir) for extra_element in self.request.node.iter_markers("pytester_example_path"): assert extra_element.args example_dir = example_dir.join(*extra_element.args) if name is None: func_name = self.request.function.__name__ maybe_dir = example_dir / func_name maybe_file = example_dir / (func_name + ".py") if maybe_dir.isdir(): example_path = maybe_dir elif maybe_file.isfile(): example_path = maybe_file else: raise LookupError( "{} cant be found as module or package in {}".format( func_name, example_dir.bestrelpath(self.request.config.rootdir) ) ) else: example_path = example_dir.join(name) if example_path.isdir() and not example_path.join("__init__.py").isfile(): example_path.copy(self.tmpdir) return self.tmpdir elif example_path.isfile(): result = self.tmpdir.join(example_path.basename) example_path.copy(result) return result else: > raise LookupError( 'example "{}" is not found as a file or directory'.format(example_path) ) E LookupError: example "/home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/BST_mutations.py" is not found as a file or directory /usr/local/lib/python3.8/site-packages/_pytest/pytester.py:691: LookupError ______________________________ test_short_example ______________________________ testdir = def test_short_example(testdir): > testdir.copy_example("short_example.py") /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = name = 'short_example.py' def copy_example(self, name=None): import warnings from _pytest.warning_types import PYTESTER_COPY_EXAMPLE warnings.warn(PYTESTER_COPY_EXAMPLE, stacklevel=2) example_dir = self.request.config.getini("pytester_example_dir") if example_dir is None: raise ValueError("pytester_example_dir is unset, can't copy examples") example_dir = self.request.config.rootdir.join(example_dir) for extra_element in self.request.node.iter_markers("pytester_example_path"): assert extra_element.args example_dir = example_dir.join(*extra_element.args) if name is None: func_name = self.request.function.__name__ maybe_dir = example_dir / func_name maybe_file = example_dir / (func_name + ".py") if maybe_dir.isdir(): example_path = maybe_dir elif maybe_file.isfile(): example_path = maybe_file else: raise LookupError( "{} cant be found as module or package in {}".format( func_name, example_dir.bestrelpath(self.request.config.rootdir) ) ) else: example_path = example_dir.join(name) if example_path.isdir() and not example_path.join("__init__.py").isfile(): example_path.copy(self.tmpdir) return self.tmpdir elif example_path.isfile(): result = self.tmpdir.join(example_path.basename) example_path.copy(result) return result else: > raise LookupError( 'example "{}" is not found as a file or directory'.format(example_path) ) E LookupError: example "/home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/short_example.py" is not found as a file or directory /usr/local/lib/python3.8/site-packages/_pytest/pytester.py:691: LookupError _____________________________ test_separate_files ______________________________ testdir = def test_separate_files(testdir): > testdir.copy_example("separate_files") /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = name = 'separate_files' def copy_example(self, name=None): import warnings from _pytest.warning_types import PYTESTER_COPY_EXAMPLE warnings.warn(PYTESTER_COPY_EXAMPLE, stacklevel=2) example_dir = self.request.config.getini("pytester_example_dir") if example_dir is None: raise ValueError("pytester_example_dir is unset, can't copy examples") example_dir = self.request.config.rootdir.join(example_dir) for extra_element in self.request.node.iter_markers("pytester_example_path"): assert extra_element.args example_dir = example_dir.join(*extra_element.args) if name is None: func_name = self.request.function.__name__ maybe_dir = example_dir / func_name maybe_file = example_dir / (func_name + ".py") if maybe_dir.isdir(): example_path = maybe_dir elif maybe_file.isfile(): example_path = maybe_file else: raise LookupError( "{} cant be found as module or package in {}".format( func_name, example_dir.bestrelpath(self.request.config.rootdir) ) ) else: example_path = example_dir.join(name) if example_path.isdir() and not example_path.join("__init__.py").isfile(): example_path.copy(self.tmpdir) return self.tmpdir elif example_path.isfile(): result = self.tmpdir.join(example_path.basename) example_path.copy(result) return result else: > raise LookupError( 'example "{}" is not found as a file or directory'.format(example_path) ) E LookupError: example "/home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/separate_files" is not found as a file or directory /usr/local/lib/python3.8/site-packages/_pytest/pytester.py:691: LookupError =============================== warnings summary =============================== tests/test_examples.py::test_BST_mutations /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:25: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time testdir.copy_example("BST_mutations.py") tests/test_examples.py::test_short_example /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:45: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time testdir.copy_example("short_example.py") tests/test_examples.py::test_separate_files /home/amdmi3/projects/ports/py-pytest-mutagen/work-py38/pytest-mutagen-b4cc63c/tests/test_examples.py:63: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time testdir.copy_example("separate_files") -- Docs: https://docs.pytest.org/en/latest/warnings.html =============== 3 failed, 18 passed, 3 warnings in 15.51 seconds =============== *** Error code 1 Stop. make: stopped in /home/amdmi3/projects/ports/py-pytest-mutagen