self = <swh.loader.git.tests.test_loader.TestGitLoader object at 0x7f0062aa8a58>
swh_storage = <swh.storage.proxies.filter.FilteringProxyStorage object at 0x7f00629544e0>
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_tag_minimal1'
@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)
> self.loader = GitLoader(swh_storage, self.repo_url)
.tox/py3/lib/python3.7/site-packages/swh/loader/git/tests/test_loader.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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