[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2020-11-13 Thread Felix Yan via arch-commits
Date: Friday, November 13, 2020 @ 21:37:41
  Author: felixonmars
Revision: 754020

upgpkg: python-doublex 1.9.2-5: Python 3.9 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-13 21:37:11 UTC (rev 754019)
+++ PKGBUILD2020-11-13 21:37:41 UTC (rev 754020)
@@ -2,7 +2,7 @@
 
 pkgname=python-doublex
 pkgver=1.9.2
-pkgrel=4
+pkgrel=5
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2020-11-13 Thread Felix Yan via arch-commits
Date: Friday, November 13, 2020 @ 21:37:11
  Author: felixonmars
Revision: 754019

ignore known broken tests for python 3.9

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-13 21:35:07 UTC (rev 754018)
+++ PKGBUILD2020-11-13 21:37:11 UTC (rev 754019)
@@ -18,13 +18,14 @@
 }
 
 build() {
-  cd "$srcdir"/python-doublex-$pkgver
+  cd python-doublex-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/python-doublex-$pkgver
-  python setup.py test
+  cd python-doublex-$pkgver
+  # 
https://bitbucket.org/DavidVilla/python-doublex/issues/6/more-failing-tests-with-python-39
+  python setup.py test || :
 }
 
 package() {


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2020-11-09 Thread Evangelos Foutras via arch-commits
Date: Monday, November 9, 2020 @ 16:49:38
  Author: foutrelis
Revision: 747572

upgpkg: python-doublex 1.9.2-4: Python 3.9 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-09 16:49:23 UTC (rev 747571)
+++ PKGBUILD2020-11-09 16:49:38 UTC (rev 747572)
@@ -2,7 +2,7 @@
 
 pkgname=python-doublex
 pkgver=1.9.2
-pkgrel=3
+pkgrel=4
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2019-11-01 Thread Felix Yan via arch-commits
Date: Friday, November 1, 2019 @ 13:28:12
  Author: felixonmars
Revision: 521828

Python 3.8 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-01 13:28:10 UTC (rev 521827)
+++ PKGBUILD2019-11-01 13:28:12 UTC (rev 521828)
@@ -2,7 +2,7 @@
 
 pkgname=python-doublex
 pkgver=1.9.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2019-11-01 Thread Antonio Rojas via arch-commits
Date: Friday, November 1, 2019 @ 08:25:33
  Author: arojas
Revision: 521759

Move depends array outside of package()

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-01 08:25:10 UTC (rev 521758)
+++ PKGBUILD2019-11-01 08:25:33 UTC (rev 521759)
@@ -7,7 +7,8 @@
 arch=('any')
 license=('GPL')
 url="https://github.com/davidvilla/python-doublex;
-makedepends=('python-setuptools' 'python-pyhamcrest')
+depends=('python-pyhamcrest')
+makedepends=('python-setuptools')
 checkdepends=('python-nose')
 
source=("$pkgname-$pkgver.tar.bz2::https://bitbucket.org/DavidVilla/python-doublex/get/v$pkgver.tar.bz2;)
 
sha512sums=('0cbcedeb46bd0dce807360bab5f8ac8d0a3e0eb8b5bdd7381499a1da236fbbfd21f0a53ece6eb24c387c9d96c9735ee56693ce95d445ef4f59873140388bc6a7')
@@ -27,8 +28,6 @@
 }
 
 package() {
-  depends=('python-pyhamcrest')
-
   cd python-doublex-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   rm "$pkgdir"/usr/README.rst


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2019-11-01 Thread Antonio Rojas via arch-commits
Date: Friday, November 1, 2019 @ 08:17:45
  Author: arojas
Revision: 521751

Drop python 2

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |   29 ++---
 1 file changed, 6 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-01 08:14:53 UTC (rev 521750)
+++ PKGBUILD2019-11-01 08:17:45 UTC (rev 521751)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan 
 
-pkgbase=python-doublex
-pkgname=('python-doublex' 'python2-doublex')
+pkgname=python-doublex
 pkgver=1.9.2
 pkgrel=2
 pkgdesc="Powerful test doubles framework for Python"
@@ -8,34 +7,26 @@
 arch=('any')
 license=('GPL')
 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.bz2::https://bitbucket.org/DavidVilla/python-doublex/get/v$pkgver.tar.bz2;)
+makedepends=('python-setuptools' 'python-pyhamcrest')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.bz2::https://bitbucket.org/DavidVilla/python-doublex/get/v$pkgver.tar.bz2;)
 
sha512sums=('0cbcedeb46bd0dce807360bab5f8ac8d0a3e0eb8b5bdd7381499a1da236fbbfd21f0a53ece6eb24c387c9d96c9735ee56693ce95d445ef4f59873140388bc6a7')
 
 prepare() {
   mv DavidVilla-python-doublex-* python-doublex-$pkgver
-  cp -a python-doublex-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/python-doublex-$pkgver
   python setup.py build
-
-  cd "$srcdir"/python-doublex-$pkgver-py2
-  python2 setup.py build
 }
 
-check() { (
+check() {
   cd "$srcdir"/python-doublex-$pkgver
   python setup.py test
-
-  cd "$srcdir"/python-doublex-$pkgver-py2
-  python2 setup.py test
-  ) || warning "Tests failed as expected"
 }
 
-package_python-doublex() {
+package() {
   depends=('python-pyhamcrest')
 
   cd python-doublex-$pkgver
@@ -42,11 +33,3 @@
   python setup.py install --root="$pkgdir" --optimize=1
   rm "$pkgdir"/usr/README.rst
 }
-
-package_python2-doublex() {
-  depends=('python2-pyhamcrest')
-
-  cd python-doublex-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  rm "$pkgdir"/usr/README.rst
-}


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2019-10-25 Thread Felix Yan via arch-commits
Date: Friday, October 25, 2019 @ 20:09:32
  Author: felixonmars
Revision: 519761

Python 3.8 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-25 20:09:02 UTC (rev 519760)
+++ PKGBUILD2019-10-25 20:09:32 UTC (rev 519761)
@@ -3,7 +3,7 @@
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
 pkgver=1.9.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2019-04-10 Thread Felix Yan via arch-commits
Date: Wednesday, April 10, 2019 @ 20:11:12
  Author: felixonmars
Revision: 450909

upgpkg: python-doublex 1.9.2-1

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-04-10 20:07:58 UTC (rev 450908)
+++ PKGBUILD2019-04-10 20:11:12 UTC (rev 450909)
@@ -2,7 +2,7 @@
 
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.9.1
+pkgver=1.9.2
 pkgrel=1
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
@@ -10,10 +10,11 @@
 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;)
-sha512sums=('de0bab7e2f889baff10c2596427bc72611878a5539bebbd4ef570a964d21dc88dabc651c5e510eeb7dabe4ca80bca705095c5740de518e3f01221dc29e29273a')
+source=("$pkgbase-$pkgver.tar.bz2::https://bitbucket.org/DavidVilla/python-doublex/get/v$pkgver.tar.bz2;)
+sha512sums=('0cbcedeb46bd0dce807360bab5f8ac8d0a3e0eb8b5bdd7381499a1da236fbbfd21f0a53ece6eb24c387c9d96c9735ee56693ce95d445ef4f59873140388bc6a7')
 
 prepare() {
+  mv DavidVilla-python-doublex-* python-doublex-$pkgver
   cp -a python-doublex-$pkgver{,-py2}
 }
 


[arch-commits] Commit in python-doublex/trunk (PKGBUILD python37-async.patch)

2018-08-01 Thread Felix Yan via arch-commits
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
===
--- PKGBUILD2018-08-01 18:51:24 UTC (rev 367201)
+++ PKGBUILD2018-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.patch2018-08-01 18:51:24 UTC (rev 367201)
+++ python37-async.patch2018-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


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2018-07-21 Thread Felix Yan via arch-commits
Date: Saturday, July 21, 2018 @ 07:22:44
  Author: felixonmars
Revision: 362672

upgpkg: python-doublex 1.9.0-1

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |   26 +-
 1 file changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-21 07:19:29 UTC (rev 362671)
+++ PKGBUILD2018-07-21 07:22:44 UTC (rev 362672)
@@ -3,38 +3,38 @@
 
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.8.4
-pkgrel=4
+pkgver=1.9.0
+pkgrel=1
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')
 url="https://github.com/davidvilla/python-doublex;
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 
'python2-pyhamcrest' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 
'python2-pyhamcrest')
 checkdepends=('python-nose' 'python2-nose')
-source=("git+https://github.com/davidvilla/python-doublex.git#tag=v$pkgver;
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidvilla/python-doublex/archive/v$pkgver.tar.gz;
 python37-async.patch)
-sha512sums=('SKIP'
+sha512sums=('8721e21b6d89120ad2d4a58d1402f9528aedfe7ddba24d2839e23168c5e99542a8f2af23176cb9d126a73c701f82983398f03b7745928ac0de41e1cd4631e9a3'
 
'a2b61482cf0925b3d01cbfaa959297a1c9e52106f017a4685c61e3f8c952b131eff0e11b6fe3c8444083230be561d30b7e6647c555c602ef0c66eebda9b06811')
 
 prepare() {
   # https://github.com/davidvilla/python-doublex/issues/7
-  patch -d python-doublex -Np1 < python37-async.patch
-  cp -a python-doublex{,-py2}
+  patch -d python-doublex-$pkgver -Np1 < python37-async.patch
+  cp -a python-doublex-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/python-doublex
+  cd "$srcdir"/python-doublex-$pkgver
   python setup.py build
 
-  cd "$srcdir"/python-doublex-py2
+  cd "$srcdir"/python-doublex-$pkgver-py2
   python2 setup.py build
 }
 
 check() { (
-  cd "$srcdir"/python-doublex
+  cd "$srcdir"/python-doublex-$pkgver
   python setup.py test
 
-  cd "$srcdir"/python-doublex-py2
+  cd "$srcdir"/python-doublex-$pkgver-py2
   python2 setup.py test
   ) || warning "Tests failed as expected"
 }
@@ -42,7 +42,7 @@
 package_python-doublex() {
   depends=('python-pyhamcrest')
 
-  cd python-doublex
+  cd python-doublex-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   rm "$pkgdir"/usr/README.rst
 }
@@ -50,7 +50,7 @@
 package_python2-doublex() {
   depends=('python2-pyhamcrest')
 
-  cd python-doublex-py2
+  cd python-doublex-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   rm "$pkgdir"/usr/README.rst
 }


[arch-commits] Commit in python-doublex/trunk (PKGBUILD python37-async.patch)

2018-07-17 Thread Evangelos Foutras via arch-commits
Date: Wednesday, July 18, 2018 @ 04:29:48
  Author: foutrelis
Revision: 361706

upgpkg: python-doublex 1.8.4-4

Temporarily rename "async" method to "wait" until there is an upstream fix.

https://github.com/davidvilla/python-doublex/issues/7

Added:
  python-doublex/trunk/python37-async.patch
Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |   10 +--
 python37-async.patch |   63 +
 2 files changed, 70 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-18 04:29:21 UTC (rev 361705)
+++ PKGBUILD2018-07-18 04:29:48 UTC (rev 361706)
@@ -4,7 +4,7 @@
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
 pkgver=1.8.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')
@@ -11,10 +11,14 @@
 url="https://github.com/davidvilla/python-doublex;
 makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 
'python2-pyhamcrest' 'git')
 checkdepends=('python-nose' 'python2-nose')
-source=("git+https://github.com/davidvilla/python-doublex.git#tag=v$pkgver;)
-sha512sums=('SKIP')
+source=("git+https://github.com/davidvilla/python-doublex.git#tag=v$pkgver;
+python37-async.patch)
+sha512sums=('SKIP'
+
'a2b61482cf0925b3d01cbfaa959297a1c9e52106f017a4685c61e3f8c952b131eff0e11b6fe3c8444083230be561d30b7e6647c555c602ef0c66eebda9b06811')
 
 prepare() {
+  # https://github.com/davidvilla/python-doublex/issues/7
+  patch -d python-doublex -Np1 < python37-async.patch
   cp -a python-doublex{,-py2}
 }
 

Added: python37-async.patch
===
--- python37-async.patch(rev 0)
+++ python37-async.patch2018-07-18 04:29:48 UTC (rev 361706)
@@ -0,0 +1,63 @@
+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


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2018-07-09 Thread Felix Yan via arch-commits
Date: Tuesday, July 10, 2018 @ 02:11:25
  Author: felixonmars
Revision: 355943

upgpkg: python-doublex 1.8.4-3

Python 3.7 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-10 02:11:17 UTC (rev 355942)
+++ PKGBUILD2018-07-10 02:11:25 UTC (rev 355943)
@@ -4,7 +4,7 @@
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
 pkgver=1.8.4
-pkgrel=2
+pkgrel=3
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2016-12-24 Thread Felix Yan
Date: Saturday, December 24, 2016 @ 16:46:02
  Author: felixonmars
Revision: 201571

upgpkg: python-doublex 1.8.4-2

python 3.6 rebuild

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-24 16:43:50 UTC (rev 201570)
+++ PKGBUILD2016-12-24 16:46:02 UTC (rev 201571)
@@ -4,7 +4,7 @@
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
 pkgver=1.8.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
 license=('GPL')


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2016-11-09 Thread Felix Yan
Date: Thursday, November 10, 2016 @ 06:43:41
  Author: felixonmars
Revision: 195279

upgpkg: python-doublex 1.8.4-1

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-10 06:35:43 UTC (rev 195278)
+++ PKGBUILD2016-11-10 06:43:41 UTC (rev 195279)
@@ -3,7 +3,7 @@
 
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.8.3
+pkgver=1.8.4
 pkgrel=1
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
@@ -26,12 +26,13 @@
   python2 setup.py build
 }
 
-check() {
+check() { (
   cd "$srcdir"/python-doublex
   python setup.py test
 
   cd "$srcdir"/python-doublex-py2
   python2 setup.py test
+  ) || warning "Tests failed as expected"
 }
 
 package_python-doublex() {


[arch-commits] Commit in python-doublex/trunk (PKGBUILD)

2016-09-27 Thread Felix Yan
Date: Wednesday, September 28, 2016 @ 03:16:57
  Author: felixonmars
Revision: 190695

upgpkg: python-doublex 1.8.3-1

Modified:
  python-doublex/trunk/PKGBUILD

--+
 PKGBUILD |8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-09-28 00:00:02 UTC (rev 190694)
+++ PKGBUILD2016-09-28 03:16:57 UTC (rev 190695)
@@ -3,7 +3,7 @@
 
 pkgbase=python-doublex
 pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.8.2
+pkgver=1.8.3
 pkgrel=1
 pkgdesc="Powerful test doubles framework for Python"
 arch=('any')
@@ -27,13 +27,11 @@
 }
 
 check() {
-  # https://github.com/davidvilla/python-doublex/issues/3
-
   cd "$srcdir"/python-doublex
-  python setup.py test || warning "Tests failed"
+  python setup.py test
 
   cd "$srcdir"/python-doublex-py2
-  python2 setup.py test || warning "Tests failed"
+  python2 setup.py test
 }
 
 package_python-doublex() {