self = <swh.loader.git.tests.test_loader.TestGitLoader2 object at 0x7f0062325128>
swh_storage = <swh.storage.proxies.filter.FilteringProxyStorage object at 0x7f006242d128>
datadir = '/var/lib/jenkins/workspace/DLDG/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/git/tests/data'
tmp_path = '/tmp/pytest-of-jenkins/pytest-0/test_load_visit_failure_ValueE1'
@pytest.fixture(autouse=True)
def init(self, swh_storage, datadir, tmp_path):
archive_name = "testrepo"
archive_path = os.path.join(datadir, f"{archive_name}.tgz")
tmp_path = str(tmp_path)
self.repo_url = prepare_repository_from_archive(
archive_path, archive_name, tmp_path=tmp_path
)
self.destination_path = os.path.join(tmp_path, archive_name)
base_url = f"base://{self.repo_url}"
> self.loader = GitLoader(swh_storage, self.repo_url, base_url=base_url)
.tox/py3/lib/python3.7/site-packages/swh/loader/git/tests/test_loader.py:129:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/loader/git/loader.py:169: in __init__
self.tracemalloc_snapshot = tracemalloc.take_snapshot()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def take_snapshot():
"""
Take a snapshot of traces of memory blocks allocated by Python.
"""
if not is_tracing():
> raise RuntimeError("the tracemalloc module must be tracing memory "
"allocations to take a snapshot")
E RuntimeError: the tracemalloc module must be tracing memory allocations to take a snapshot
/usr/lib/python3.7/tracemalloc.py:530: RuntimeError
TEST RESULT
TEST RESULT
- Run At
- Oct 6 2021, 2:13 PM