Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.opam.tests.test_opam::test_opam_release
Failed

TEST RESULT

Run At
Feb 25 2022, 10:12 AM
Details
mocker = <pytest_mock.plugin.MockerFixture object at 0x7fdd66f95f28> tmpdir = local('/tmp/pytest-of-jenkins/pytest-0/test_opam_release0') datadir = '/var/lib/jenkins/workspace/DLDBASE/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/package/opam/tests/data' @pytest.fixture def fake_opam_root(mocker, tmpdir, datadir): """Fixture to initialize the actual opam in test context. It mocks the actual opam init calls and installs a fake opam root out of the one present in datadir. """ # inhibits the real `subprocess.call` which prepares the required internal opam # state module_name = "swh.loader.package.opam.loader" mock_init = mocker.patch(f"{module_name}.call", return_value=None) # Installs the fake opam root for the tests to use fake_opam_root_src = f"{datadir}/fake_opam_repo" fake_opam_root_dst = f"{tmpdir}/opam" > copytree(fake_opam_root_src, fake_opam_root_dst, dirs_exist_ok=True) E TypeError: copytree() got an unexpected keyword argument 'dirs_exist_ok' .tox/py3/lib/python3.7/site-packages/swh/loader/package/opam/tests/test_opam.py:85: TypeError