commit: eac5ef080662ac6b4b073c8dec6c0f41633f9318
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 8 06:43:20 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jun 8 07:45:19 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eac5ef08
dev-python/pyaudio: restirct tests, and explain why so
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild
b/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild
index 90922f58ade..ec8e831d71f 100644
--- a/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild
+++ b/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild
@@ -16,7 +16,9 @@ S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+
+# Tests work if you have the correct HW device(s) to test. 0.2.11-r1.
+RESTRICT="test"
RDEPEND="media-libs/portaudio"
DEPEND="${RDEPEND}
@@ -26,6 +28,10 @@ distutils_enable_sphinx sphinx
distutils_enable_tests unittest
python_test() {
+ elog "These tests require an OS loopback sound device that forwards
audio"
+ elog "output, generated by PyAudio for playback, and forwards it to an
input"
+ elog "device, which PyAudio can record and verify against a test
signal."
+
cd tests || die
# pyaudio_tests have very complicated runtime requirements, therefore
skipping them.
"${EPYTHON}" -m unittest error_tests -v ||