[arch-commits] Commit in python-doublex/trunk (PKGBUILD python37-async.patch)
Felix Yan
felixonmars at archlinux.org
Wed Aug 1 18:55:14 UTC 2018
Date: Wednesday, August 1, 2018 @ 18:55:13
Author: felixonmars
Revision: 367202
upgpkg: python-doublex 1.9.1-1
Modified:
python-doublex/trunk/PKGBUILD
Deleted:
python-doublex/trunk/python37-async.patch
----------------------+
PKGBUILD | 10 ++-----
python37-async.patch | 63 -------------------------------------------------
2 files changed, 3 insertions(+), 70 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-01 18:51:24 UTC (rev 367201)
+++ PKGBUILD 2018-08-01 18:55:13 UTC (rev 367202)
@@ -3,7 +3,7 @@
pkgbase=python-doublex
pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.9.0
+pkgver=1.9.1
pkgrel=1
pkgdesc="Powerful test doubles framework for Python"
arch=('any')
@@ -11,14 +11,10 @@
url="https://github.com/davidvilla/python-doublex"
makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 'python2-pyhamcrest')
checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidvilla/python-doublex/archive/v$pkgver.tar.gz"
- python37-async.patch)
-sha512sums=('8721e21b6d89120ad2d4a58d1402f9528aedfe7ddba24d2839e23168c5e99542a8f2af23176cb9d126a73c701f82983398f03b7745928ac0de41e1cd4631e9a3'
- 'a2b61482cf0925b3d01cbfaa959297a1c9e52106f017a4685c61e3f8c952b131eff0e11b6fe3c8444083230be561d30b7e6647c555c602ef0c66eebda9b06811')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidvilla/python-doublex/archive/v$pkgver.tar.gz")
+sha512sums=('de0bab7e2f889baff10c2596427bc72611878a5539bebbd4ef570a964d21dc88dabc651c5e510eeb7dabe4ca80bca705095c5740de518e3f01221dc29e29273a')
prepare() {
- # https://github.com/davidvilla/python-doublex/issues/7
- patch -d python-doublex-$pkgver -Np1 < python37-async.patch
cp -a python-doublex-$pkgver{,-py2}
}
Deleted: python37-async.patch
===================================================================
--- python37-async.patch 2018-08-01 18:51:24 UTC (rev 367201)
+++ python37-async.patch 2018-08-01 18:55:13 UTC (rev 367202)
@@ -1,63 +0,0 @@
-diff --git a/doublex/matchers.py b/doublex/matchers.py
-index e6ccf3c..2ecc987 100644
---- a/doublex/matchers.py
-+++ b/doublex/matchers.py
-@@ -97,7 +97,7 @@ class MethodCalled(OperationMatcher):
-
- if self._async_timeout:
- if self._times != any_time:
-- raise WrongApiUsage("'times' and 'async' are exclusive")
-+ raise WrongApiUsage("'times' and 'wait' are exclusive")
- self.method._event.wait(self._async_timeout)
-
- return method._was_called(self.context, self._times)
-@@ -126,7 +126,7 @@ class MethodCalled(OperationMatcher):
- self.context.check_some_args = True
- return self
-
-- def async(self, timeout):
-+ def wait(self, timeout):
- self._async_timeout = timeout
- return self
-
-diff --git a/doublex/test/async_race_condition_test.py b/doublex/test/async_race_condition_test.py
-index c16e3a3..375a5cf 100644
---- a/doublex/test/async_race_condition_test.py
-+++ b/doublex/test/async_race_condition_test.py
-@@ -36,4 +36,4 @@ class AsyncTests(unittest.TestCase):
- sut.some_method()
-
- # then
-- assert_that(spy.write, called().async(1))
-+ assert_that(spy.write, called().wait(1))
-diff --git a/doublex/test/unit_tests.py b/doublex/test/unit_tests.py
-index d1e1b6d..378fe94 100644
---- a/doublex/test/unit_tests.py
-+++ b/doublex/test/unit_tests.py
-@@ -1340,7 +1340,7 @@ class AsyncTests(TestCase):
- sut.send_data()
-
- # then
-- assert_that(spy.write, called().async(timeout=1))
-+ assert_that(spy.write, called().wait(timeout=1))
-
- def test_spy_async_support_1_call_only(self):
- # given
-@@ -1353,7 +1353,7 @@ class AsyncTests(TestCase):
-
- # then
- with self.assertRaises(WrongApiUsage):
-- assert_that(spy.write, called().async(timeout=1).with_args(3).times(2))
-+ assert_that(spy.write, called().wait(timeout=1).with_args(3).times(2))
-
- def test_spy_async_stubbed(self):
- # given
-@@ -1366,7 +1366,7 @@ class AsyncTests(TestCase):
- sut.send_data(3)
-
- # then
-- assert_that(spy.write, called().async(timeout=1))
-+ assert_that(spy.write, called().wait(timeout=1))
-
-
- # new on 1.7
More information about the arch-commits
mailing list