commit: 58b63042aa2d6ce853d31558e509d6b26d907504 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org> AuthorDate: Sun Nov 11 02:03:41 2018 +0000 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org> CommitDate: Sun Nov 11 02:07:51 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58b63042
dev-python/s3transfer: 0.1.13-r1: patch tests Applying upstream's own patch which fixes a failing functional test. No revbump as this doesn't affect successful installations. Link: https://github.com/boto/s3transfer/commit/67d2548f9e531650ee90e9518cf6559aabe98afd Bug: https://bugs.gentoo.org/668162 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10 .../s3transfer/files/s3transfer-0.1.13-tests.patch | 22 ++++++++++++++++++++++ dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild | 1 + 2 files changed, 23 insertions(+) diff --git a/dev-python/s3transfer/files/s3transfer-0.1.13-tests.patch b/dev-python/s3transfer/files/s3transfer-0.1.13-tests.patch new file mode 100644 index 00000000000..14445f338bf --- /dev/null +++ b/dev-python/s3transfer/files/s3transfer-0.1.13-tests.patch @@ -0,0 +1,22 @@ +From 67d2548f9e531650ee90e9518cf6559aabe98afd Mon Sep 17 00:00:00 2001 +From: Jordan Guymon <jogu...@gmail.com> +Date: Fri, 31 Aug 2018 10:22:25 -0700 +Subject: [PATCH] Add whence to mock readable seek to fix functional test + +--- + tests/functional/test_manager.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/functional/test_manager.py b/tests/functional/test_manager.py +index 9d5702d..ec4175a 100644 +--- a/tests/functional/test_manager.py ++++ b/tests/functional/test_manager.py +@@ -40,7 +40,7 @@ def signal_transferring(self): + def signal_not_transferring(self): + self.signal_not_transferring_call_count += 1 + +- def seek(self, where): ++ def seek(self, where, whence=0): + pass + + def tell(self): diff --git a/dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild b/dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild index 37879fd4d19..11c8e4c80ee 100644 --- a/dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild +++ b/dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild @@ -30,6 +30,7 @@ DEPEND=" " RDEPEND="${CDEPEND}" +PATCHES=( "${FILESDIR}/s3transfer-0.1.13-tests.patch" ) python_test() { nosetests -v tests/unit/ tests/functional/ || die "tests failed under ${EPYTHON}" }