commit: 84eb8dc8edd505d3e780b938f84c4e99e3611fe7
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 7 13:47:31 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 7 13:52:51 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84eb8dc8
dev-python/pyftpdlib: Avoid import collisions with localftpserver
Avoid import collisions when pytest-localftpserver plugin is installed.
The plugin loads pyftpdlib early, so make sure that pytest is going
to load tests from the same directory. Reported by Arthur Zamarin.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild
b/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild
index 21ad58b09d2..4f7cb41422b 100644
--- a/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild
+++ b/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild
@@ -33,6 +33,8 @@ BDEPEND="
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
python_test() {
+ cd "${BUILD_DIR}"/lib || die
+
# These tests fail when passing additional options to pytest
# so we need to run them separately and not pass any args to pytest
pytest ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}"