summaryrefslogtreecommitdiff
path: root/dev-python/python-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-daemon')
-rw-r--r--dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild (renamed from dev-python/python-daemon/python-daemon-2.3.0.ebuild)9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/python-daemon/python-daemon-2.3.0.ebuild b/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild
index b7827bacdf6c..4ace3642ef5c 100644
--- a/dev-python/python-daemon/python-daemon-2.3.0.ebuild
+++ b/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild
@@ -29,4 +29,11 @@ BDEPEND="
)
"
-distutils_enable_tests setup.py
+distutils_enable_tests unittest
+
+src_prepare() {
+ # fix for >=testtools-2.5.0
+ sed -e 's/testtools.helpers.safe_hasattr/hasattr/' \
+ -i test/test_metadata.py || die
+ distutils-r1_src_prepare
+}