dev-python/s3transfer: 0.1.13-r1: patch tests
authorAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 11 Nov 2018 02:03:41 +0000 (02:03 +0000)
committerAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 11 Nov 2018 02:07:51 +0000 (02:07 +0000)
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@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-python/s3transfer/files/s3transfer-0.1.13-tests.patch [new file with mode: 0644]
dev-python/s3transfer/s3transfer-0.1.13-r1.ebuild

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 (file)
index 0000000..14445f3
--- /dev/null
@@ -0,0 +1,22 @@
+From 67d2548f9e531650ee90e9518cf6559aabe98afd Mon Sep 17 00:00:00 2001
+From: Jordan Guymon <jogu.sd@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):
index 37879fd4d19aa0a77ad4290076cc4070ea1b412b..11c8e4c80eea81ff0b8d2480ac56de4221e17587 100644 (file)
@@ -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}"
 }