Due to test modules being copied in subdirectories of the
`build` directory by `setuptools`, it makes pytest fail by raising
`ImportPathMismatchError` exceptions when invoked from root
directory of the module.
```lines=20
(swh) ✔ ~/swh/swh-environment/swh-model [master|⚑ 2]
11:09 $ make test
python3 -m pytest .
================================================================================================================================== test session starts ==================================================================================================================================
platform linux -- Python 3.9.2, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/anlambert/swh/swh-environment/swh-model, configfile: pytest.ini
plugins: redis-2.4.0, postgresql-3.1.3, forked-1.4.0, hypothesis-6.39.3, mock-3.7.0, flask-1.2.0, xdist-2.5.0, cov-3.0.0, requests-mock-1.9.3, django-test-migrations-1.2.0, django-4.5.2, dash-2.1.0, asyncio-0.18.1, swh.journal-1.0.1.dev1+gda32c0e
asyncio: mode=legacy
collected 854 items / 51 errors / 803 selected
======================================================================================================================================== ERRORS =========================================================================================================================================
______________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/cli.py ______________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.cli', '/home/anlambert/swh/swh-environment/swh-model/swh/model/cli.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/cli.py'))
__________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/collections.py __________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.collections', '/home/anlambert/swh/swh-environment/swh-model/swh/model/collections.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/collections.py'))
__________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/exceptions.py ___________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.exceptions', '/home/anlambert/swh/swh-environment/swh-model/swh/model/exceptions.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/exceptions.py'))
___________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/from_disk.py ___________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/from_disk.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/from_disk.py'))
__________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/git_objects.py __________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.git_objects', '/home/anlambert/swh/swh-environment/swh-model/swh/model/git_objects.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/git_objects.py'))
___________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/hashutil.py ____________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.hashutil', '/home/anlambert/swh/swh-environment/swh-model/swh/model/hashutil.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/hashutil.py'))
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/hypothesis_strategies.py _____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.hypothesis_strategies', '/home/anlambert/swh/swh-environment/swh-model/swh/model/hypothesis_strategies.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/hypothesis_strategies.py'))
__________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/identifiers.py __________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.identifiers', '/home/anlambert/swh/swh-environment/swh-model/swh/model/identifiers.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/identifiers.py'))
____________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/merkle.py _____________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.merkle', '/home/anlambert/swh/swh-environment/swh-model/swh/model/merkle.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/merkle.py'))
_____________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/model.py _____________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.model', '/home/anlambert/swh/swh-environment/swh-model/swh/model/model.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/model.py'))
____________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/swhids.py _____________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.swhids', '/home/anlambert/swh/swh-environment/swh-model/swh/model/swhids.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/swhids.py'))
___________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/toposort.py ____________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.toposort', '/home/anlambert/swh/swh-environment/swh-model/swh/model/toposort.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/toposort.py'))
__________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/validators.py ___________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.validators', '/home/anlambert/swh/swh-environment/swh-model/swh/model/validators.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/validators.py'))
________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/fields/compound.py ________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.compound', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/compound.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/fields/compound.py'))
_________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/fields/hashes.py _________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.hashes', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/hashes.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/fields/hashes.py'))
_________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/fields/simple.py _________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.simple', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/simple.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/fields/simple.py'))
____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/generate_testdata.py ____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.generate_testdata', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/generate_testdata.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/generate_testdata.py'))
_______________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/generate_testdata_from_disk.py _______________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.generate_testdata_from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/generate_testdata_from_disk.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/generate_testdata_from_disk.py'))
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/swh_model_data.py ______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.swh_model_data', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/swh_model_data.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/swh_model_data.py'))
________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_cli.py _________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_cli', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_cli.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_cli.py'))
________________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_cli.py _________________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_cli' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_cli.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_cli.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_collections.py _____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_collections', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_collections.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_collections.py'))
____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_collections.py _____________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_collections' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_collections.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_collections.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_from_disk.py ______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_from_disk.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_from_disk.py'))
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_from_disk.py ______________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_from_disk' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_from_disk.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_from_disk.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_generate_testdata.py __________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_generate_testdata', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_generate_testdata.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_generate_testdata.py'))
_________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_generate_testdata.py __________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_generate_testdata' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_generate_testdata.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_generate_testdata.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_hashutil.py ______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_hashutil', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hashutil.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_hashutil.py'))
______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_hashutil.py ______________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_hashutil' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hashutil.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_hashutil.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_hypothesis_strategies.py ________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_hypothesis_strategies', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hypothesis_strategies.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_hypothesis_strategies.py'))
_______________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_hypothesis_strategies.py ________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_hypothesis_strategies' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hypothesis_strategies.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_hypothesis_strategies.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_identifiers.py _____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_identifiers', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_identifiers.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_identifiers.py'))
____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_identifiers.py _____________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_identifiers' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_identifiers.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_identifiers.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_merkle.py _______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_merkle', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_merkle.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_merkle.py'))
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_merkle.py _______________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_merkle' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_merkle.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_merkle.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_model.py ________________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_model', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_model.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_model.py'))
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_model.py ________________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_model' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_model.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_model.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_swh_model_data.py ___________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_swh_model_data', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swh_model_data.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_swh_model_data.py'))
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_swh_model_data.py ___________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_swh_model_data' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swh_model_data.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_swh_model_data.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_swhids.py _______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_swhids', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swhids.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_swhids.py'))
_______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_swhids.py _______________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_swhids' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swhids.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_swhids.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_toposort.py ______________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_toposort', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_toposort.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_toposort.py'))
______________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_toposort.py ______________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_toposort' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_toposort.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_toposort.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_validators.py _____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_validators', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_validators.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_validators.py'))
_____________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/test_validators.py _____________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.test_validators' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_validators.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/test_validators.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
__________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_compound.py ___________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_compound', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_compound.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_compound.py'))
__________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_compound.py ___________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.fields.test_compound' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_compound.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_compound.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_hashes.py ____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_hashes', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_hashes.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_hashes.py'))
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_hashes.py ____________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.fields.test_hashes' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_hashes.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_hashes.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_simple.py ____________________________________________________________________________________________________________
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_simple', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_simple.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_simple.py'))
___________________________________________________________________________________________________________ ERROR collecting build/lib/swh/model/tests/fields/test_simple.py ____________________________________________________________________________________________________________
import file mismatch:
imported module 'swh.model.tests.fields.test_simple' has this __file__ attribute:
/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_simple.py
which is not the same as the test file we want to collect:
/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/fields/test_simple.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
=================================================================================================================================== warnings summary ====================================================================================================================================
../../../.virtualenvs/swh/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191
/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
../../../.virtualenvs/swh/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:170
/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:170: DeprecationWarning: The swh.model.identifiers module is deprecated. SWHID-related classes were moved to swh.model.swhids, and identifier computation is now done directly with swh.model.model classes.
exec(co, module.__dict__)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================================================================================================================ short test summary info ================================================================================================================================
ERROR build/lib/swh/model/cli.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.cli', '/home/anlambert/swh/swh-environment/swh-model/swh/model/cli.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/cli.py'))
ERROR build/lib/swh/model/collections.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.collections', '/home/anlambert/swh/swh-environment/swh-model/swh/model/collections.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/collections.py'))
ERROR build/lib/swh/model/exceptions.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.exceptions', '/home/anlambert/swh/swh-environment/swh-model/swh/model/exceptions.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/exceptions.py'))
ERROR build/lib/swh/model/from_disk.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/from_disk.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/from_disk.py'))
ERROR build/lib/swh/model/git_objects.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.git_objects', '/home/anlambert/swh/swh-environment/swh-model/swh/model/git_objects.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/git_objects.py'))
ERROR build/lib/swh/model/hashutil.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.hashutil', '/home/anlambert/swh/swh-environment/swh-model/swh/model/hashutil.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/hashutil.py'))
ERROR build/lib/swh/model/hypothesis_strategies.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.hypothesis_strategies', '/home/anlambert/swh/swh-environment/swh-model/swh/model/hypothesis_strategies.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/l...
ERROR build/lib/swh/model/identifiers.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.identifiers', '/home/anlambert/swh/swh-environment/swh-model/swh/model/identifiers.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/identifiers.py'))
ERROR build/lib/swh/model/merkle.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.merkle', '/home/anlambert/swh/swh-environment/swh-model/swh/model/merkle.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/merkle.py'))
ERROR build/lib/swh/model/model.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.model', '/home/anlambert/swh/swh-environment/swh-model/swh/model/model.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/model.py'))
ERROR build/lib/swh/model/swhids.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.swhids', '/home/anlambert/swh/swh-environment/swh-model/swh/model/swhids.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/swhids.py'))
ERROR build/lib/swh/model/toposort.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.toposort', '/home/anlambert/swh/swh-environment/swh-model/swh/model/toposort.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/toposort.py'))
ERROR build/lib/swh/model/validators.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.validators', '/home/anlambert/swh/swh-environment/swh-model/swh/model/validators.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/validators.py'))
ERROR build/lib/swh/model/fields/compound.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.compound', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/compound.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/field...
ERROR build/lib/swh/model/fields/hashes.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.hashes', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/hashes.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/fields/hash...
ERROR build/lib/swh/model/fields/simple.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.fields.simple', '/home/anlambert/swh/swh-environment/swh-model/swh/model/fields/simple.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/fields/simp...
ERROR build/lib/swh/model/tests/generate_testdata.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.generate_testdata', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/generate_testdata.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/b...
ERROR build/lib/swh/model/tests/generate_testdata_from_disk.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.generate_testdata_from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/generate_testdata_from_disk.py', PosixPath('/home/anlambert/s...
ERROR build/lib/swh/model/tests/swh_model_data.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.swh_model_data', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/swh_model_data.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/...
ERROR build/lib/swh/model/tests/test_cli.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_cli', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_cli.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/tests/te...
ERROR build/lib/swh/model/tests/test_cli.py
ERROR build/lib/swh/model/tests/test_collections.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_collections', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_collections.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/buil...
ERROR build/lib/swh/model/tests/test_collections.py
ERROR build/lib/swh/model/tests/test_from_disk.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_from_disk', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_from_disk.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/...
ERROR build/lib/swh/model/tests/test_from_disk.py
ERROR build/lib/swh/model/tests/test_generate_testdata.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_generate_testdata', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_generate_testdata.py', PosixPath('/home/anlambert/swh/swh-environm...
ERROR build/lib/swh/model/tests/test_generate_testdata.py
ERROR build/lib/swh/model/tests/test_hashutil.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_hashutil', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hashutil.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh...
ERROR build/lib/swh/model/tests/test_hashutil.py
ERROR build/lib/swh/model/tests/test_hypothesis_strategies.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_hypothesis_strategies', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_hypothesis_strategies.py', PosixPath('/home/anlambert/swh/...
ERROR build/lib/swh/model/tests/test_hypothesis_strategies.py
ERROR build/lib/swh/model/tests/test_identifiers.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_identifiers', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_identifiers.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/buil...
ERROR build/lib/swh/model/tests/test_identifiers.py
ERROR build/lib/swh/model/tests/test_merkle.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_merkle', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_merkle.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model...
ERROR build/lib/swh/model/tests/test_merkle.py
ERROR build/lib/swh/model/tests/test_model.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_model', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_model.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model/te...
ERROR build/lib/swh/model/tests/test_model.py
ERROR build/lib/swh/model/tests/test_swh_model_data.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_swh_model_data', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swh_model_data.py', PosixPath('/home/anlambert/swh/swh-environment/swh-m...
ERROR build/lib/swh/model/tests/test_swh_model_data.py
ERROR build/lib/swh/model/tests/test_swhids.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_swhids', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_swhids.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh/model...
ERROR build/lib/swh/model/tests/test_swhids.py
ERROR build/lib/swh/model/tests/test_toposort.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_toposort', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_toposort.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/lib/swh...
ERROR build/lib/swh/model/tests/test_toposort.py
ERROR build/lib/swh/model/tests/test_validators.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.test_validators', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/test_validators.py', PosixPath('/home/anlambert/swh/swh-environment/swh-model/build/l...
ERROR build/lib/swh/model/tests/test_validators.py
ERROR build/lib/swh/model/tests/fields/test_compound.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_compound', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_compound.py', PosixPath('/home/anlambert/swh/swh-environment/sw...
ERROR build/lib/swh/model/tests/fields/test_compound.py
ERROR build/lib/swh/model/tests/fields/test_hashes.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_hashes', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_hashes.py', PosixPath('/home/anlambert/swh/swh-environment/swh-mode...
ERROR build/lib/swh/model/tests/fields/test_hashes.py
ERROR build/lib/swh/model/tests/fields/test_simple.py - _pytest.pathlib.ImportPathMismatchError: ('swh.model.tests.fields.test_simple', '/home/anlambert/swh/swh-environment/swh-model/swh/model/tests/fields/test_simple.py', PosixPath('/home/anlambert/swh/swh-environment/swh-mode...
ERROR build/lib/swh/model/tests/fields/test_simple.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 51 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================================================ 2 warnings, 51 errors in 1.51s =============================================================================================================================
make: *** [../Makefile.python:20: test] Error 2
```
So ignore the `build` folder to discover tests.