[arch-commits] Commit in python-jsonrpc-server/trunk (PKGBUILD fix-test.patch)
Morten Linderud
foxboron at archlinux.org
Fri Nov 13 17:23:49 UTC 2020
Date: Friday, November 13, 2020 @ 17:23:49
Author: foxboron
Revision: 753937
Added proper patch for tests
Modified:
python-jsonrpc-server/trunk/PKGBUILD
python-jsonrpc-server/trunk/fix-test.patch
----------------+
PKGBUILD | 2 +-
fix-test.patch | 21 +++++++--------------
2 files changed, 8 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-13 17:21:19 UTC (rev 753936)
+++ PKGBUILD 2020-11-13 17:23:49 UTC (rev 753937)
@@ -15,7 +15,7 @@
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"fix-test.patch")
sha256sums=('62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595'
- 'ad8dfe322b5d1f29db6da44f1346f2a900d046d2163241c1e312bfd7c54b5155')
+ '7f6dcef7052f666bafccaa2d43c037a511aaad8ee289fb65130eae809cf88072')
prepare(){
cd "${pkgname}-${pkgver}"
Modified: fix-test.patch
===================================================================
--- fix-test.patch 2020-11-13 17:21:19 UTC (rev 753936)
+++ fix-test.patch 2020-11-13 17:23:49 UTC (rev 753937)
@@ -1,19 +1,12 @@
diff --git a/test/test_streams.py b/test/test_streams.py
-index 6985aec..8b292f9 100644
+index 6985aec..9e64489 100644
--- a/test/test_streams.py
+++ b/test/test_streams.py
-@@ -121,10 +121,10 @@ def test_writer_bad_message(wfile, writer):
+@@ -119,6 +119,7 @@ def test_writer_bad_message(wfile, writer):
+ hour=1,
+ minute=1,
second=1,
++ tzinfo=datetime.timezone.utc
))
-
-- 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'
-+ )
+
+ assert wfile.getvalue() in [
More information about the arch-commits
mailing list