[arch-commits] Commit in python-h11/trunk (PKGBUILD pytest5.patch)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 1 08:20:06 UTC 2019
Date: Friday, November 1, 2019 @ 08:20:05
Author: foutrelis
Revision: 521752
Adjust a test for pytest 5
Added:
python-h11/trunk/pytest5.patch
Modified:
python-h11/trunk/PKGBUILD
---------------+
PKGBUILD | 7 +++++--
pytest5.patch | 12 ++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 08:17:45 UTC (rev 521751)
+++ PKGBUILD 2019-11-01 08:20:05 UTC (rev 521752)
@@ -12,10 +12,13 @@
arch=('any')
makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz")
-sha512sums=('3310dcd8552de4440ed9669fd37b3fc4d76073a9801decb705bceee3c1e98ff83470bd124ecf36e1ec3457ff2fb4da6f4fbf077daa810c28ab73044dfab709d4')
+source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz"
+ 'pytest5.patch')
+sha512sums=('3310dcd8552de4440ed9669fd37b3fc4d76073a9801decb705bceee3c1e98ff83470bd124ecf36e1ec3457ff2fb4da6f4fbf077daa810c28ab73044dfab709d4'
+ '7747ba51fa9350d4fa6a5c1654f237e4109a5f0b7175be777ca0e1da83af4f631a240a605c594076fefcec5c26693f55886c0cb47aa75236d65a42dd520cb6e1')
prepare() {
+ patch -Np1 -d h11-$pkgver <pytest5.patch
cp -a h11-$pkgver{,-py2}
}
Added: pytest5.patch
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2019-11-01 08:20:05 UTC (rev 521752)
@@ -0,0 +1,12 @@
+diff -upr h11-0.8.1.orig/h11/tests/test_events.py h11-0.8.1/h11/tests/test_events.py
+--- h11-0.8.1.orig/h11/tests/test_events.py 2017-03-18 23:56:02.000000000 +0200
++++ h11-0.8.1/h11/tests/test_events.py 2019-11-01 10:17:40.211258036 +0200
+@@ -43,7 +43,7 @@ def test_event_bundle():
+ with pytest.raises(TypeError) as exc:
+ T(b=0)
+ # make sure we error on the right missing kwarg
+- assert 'kwarg a' in str(exc)
++ assert 'kwarg a' in str(exc.value)
+
+ # _validate is called
+ with pytest.raises(ValueError):
More information about the arch-commits
mailing list