[arch-commits] Commit in python-intervals/trunk (PKGBUILD pytest5.patch)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 1 15:28:14 UTC 2019
Date: Friday, November 1, 2019 @ 15:28:13
Author: foutrelis
Revision: 522047
Fix tests for pytest 5
Added:
python-intervals/trunk/pytest5.patch
Modified:
python-intervals/trunk/PKGBUILD
---------------+
PKGBUILD | 10 ++++++++--
pytest5.patch | 21 +++++++++++++++++++++
2 files changed, 29 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 15:20:50 UTC (rev 522046)
+++ PKGBUILD 2019-11-01 15:28:13 UTC (rev 522047)
@@ -12,9 +12,15 @@
makedepends=('python' 'python-setuptools')
license=('BSD')
arch=('any')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('f97142d5f1c8d4da21692b856803481878ac2b2afc3b81937de456bacbf66ebb129b1fe9a070ac442cbc6bbe26fdaf2ed839f8fc8b26392b4bd1ce032d054e65')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+ 'pytest5.patch')
+sha512sums=('f97142d5f1c8d4da21692b856803481878ac2b2afc3b81937de456bacbf66ebb129b1fe9a070ac442cbc6bbe26fdaf2ed839f8fc8b26392b4bd1ce032d054e65'
+ 'af545bec7d8157259197e045396d69ac1791b5e0420056fca69bea444cceacaa208ae568fd80792f614e1c775611ea22c48521bdd47dbdd976a699c150835f96')
+prepare() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ patch -Np1 -i ../pytest5.patch
+}
build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
Added: pytest5.patch
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2019-11-01 15:28:13 UTC (rev 522047)
@@ -0,0 +1,21 @@
+diff -upr intervals-0.8.1.orig/tests/interval/test_initialization.py intervals-0.8.1/tests/interval/test_initialization.py
+--- intervals-0.8.1.orig/tests/interval/test_initialization.py 2016-07-10 21:14:03.000000000 +0300
++++ intervals-0.8.1/tests/interval/test_initialization.py 2019-11-01 17:26:19.862962549 +0200
+@@ -23,7 +23,7 @@ class TestIntervalInit(object):
+ 'First argument should be a list or tuple. If you wish to '
+ 'initialize an interval from string, use from_string factory '
+ 'method.'
+- ) in str(e)
++ ) in str(e.value)
+
+ def test_invalid_argument(self):
+ with raises(IllegalArgument) as e:
+@@ -31,7 +31,7 @@ class TestIntervalInit(object):
+ assert (
+ 'The bounds may be equal only if at least one of the bounds is '
+ 'closed.'
+- ) in str(e)
++ ) in str(e.value)
+
+ def test_floats(self):
+ interval = FloatInterval((0.2, 0.5))
More information about the arch-commits
mailing list