[arch-commits] Commit in python-jsonrpc-server/trunk (PKGBUILD fix-test.patch)
Morten Linderud
foxboron at archlinux.org
Tue Sep 15 16:17:04 UTC 2020
Date: Tuesday, September 15, 2020 @ 16:17:04
Author: foxboron
Revision: 707160
upgpkg: python-jsonrpc-server 0.4.0-1
Added:
python-jsonrpc-server/trunk/fix-test.patch
Modified:
python-jsonrpc-server/trunk/PKGBUILD
----------------+
PKGBUILD | 12 ++++++------
fix-test.patch | 19 +++++++++++++++++++
2 files changed, 25 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-15 16:13:42 UTC (rev 707159)
+++ PKGBUILD 2020-09-15 16:17:04 UTC (rev 707160)
@@ -3,7 +3,7 @@
# Contributor: fenuks
pkgname=python-jsonrpc-server
-pkgver=0.3.4
+pkgver=0.4.0
pkgrel=1
pkgdesc="Python library implementing asynchronous JSON RPC server"
arch=("any")
@@ -13,13 +13,13 @@
makedepends=("python" "python-setuptools")
checkdepends=("python-pytest" "python-pytest-runner" "python-pytest-cov" "python-pyflakes" "python-mock")
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'python-3.8.patch')
-sha256sums=('c73bf5495c9dd4d2f902755bedeb6da5afe778e0beee82f0e195c4655352fe37'
- '718d791bd233eeb9c3876f5e18d32e28e75d919375c4c2dd511f8a4e1023b479')
+ "fix-test.patch")
+sha256sums=('62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595'
+ 'ad8dfe322b5d1f29db6da44f1346f2a900d046d2163241c1e312bfd7c54b5155')
-prepare() {
+prepare(){
cd "${pkgname}-${pkgver}"
- patch -Np1 -i ../python-3.8.patch
+ patch -p1 -i ../fix-test.patch
}
build() {
Added: fix-test.patch
===================================================================
--- fix-test.patch (rev 0)
+++ fix-test.patch 2020-09-15 16:17:04 UTC (rev 707160)
@@ -0,0 +1,19 @@
+diff --git a/test/test_streams.py b/test/test_streams.py
+index 6985aec..8b292f9 100644
+--- a/test/test_streams.py
++++ b/test/test_streams.py
+@@ -121,10 +121,10 @@ def test_writer_bad_message(wfile, writer):
+ second=1,
+ ))
+
+- assert wfile.getvalue() in [
+- b'',
++ assert wfile.getvalue() == (
++ b''
+ b'Content-Length: 10\r\n'
+ b'Content-Type: application/vscode-jsonrpc; charset=utf8\r\n'
+ b'\r\n'
+- b'1546304461'
+- ]
++ b'1546300861'
++ )
More information about the arch-commits
mailing list