summaryrefslogtreecommitdiff
path: root/dev-python/syrupy
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/syrupy')
-rw-r--r--dev-python/syrupy/syrupy-5.1.0.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/syrupy/syrupy-5.1.0.ebuild b/dev-python/syrupy/syrupy-5.1.0.ebuild
index f78afde6e80b..09ed5d6cf396 100644
--- a/dev-python/syrupy/syrupy-5.1.0.ebuild
+++ b/dev-python/syrupy/syrupy-5.1.0.ebuild
@@ -28,5 +28,12 @@ BDEPEND="
"
EPYTEST_PLUGINS=( pytest-xdist )
-EPYTEST_PLUGIN_AUTOLOAD=1
distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # Inject required plugins; autoloading can break (e.g., with pytest-relaxed)
+ sed -i 's/\([a-zA-Z0-9_]\+\)\.runpytest(/\1.runpytest("-p", "syrupy", "-p", "xdist", /' \
+ tests/integration/test_*.py || die
+}