Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696938
D8576.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
745 B
Subscribers
None
D8576.diff
View Options
diff --git a/swh/storage/tests/conftest.py b/swh/storage/tests/conftest.py
--- a/swh/storage/tests/conftest.py
+++ b/swh/storage/tests/conftest.py
@@ -9,6 +9,7 @@
import pytest
try:
+ import pytest_cov
import pytest_cov.embed
except ImportError:
pytest_cov = None
@@ -35,7 +36,7 @@
# This can still be overloaded via the --hypothesis-profile option.
settings.load_profile("fast")
-if pytest_cov is not None:
+if pytest_cov is not None and int(pytest_cov.__version__.split(".")[0]) < 4:
# pytest_cov + multiprocessing can cause a segmentation fault when starting
# the child process <https://forge.softwareheritage.org/P706>; so we're
# removing pytest-coverage's hook that runs when a child process starts.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 10:15 PM (1 w, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220430
Attached To
D8576: conftest: Replace multiprocessing hack when pytest-cov >= 4 is installed
Event Timeline
Log In to Comment