Date: Monday, November 14, 2022 @ 10:22:59
  Author: yan12125
Revision: 1347498

python-httpx: fix check() with httpcore 0.16.0

See https://github.com/encode/httpx/discussions/2438

Added:
  python-httpx/trunk/httpcore-0.16.0.diff
Modified:
  python-httpx/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   12 +++++++++---
 httpcore-0.16.0.diff |   13 +++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-14 10:13:57 UTC (rev 1347497)
+++ PKGBUILD    2022-11-14 10:22:59 UTC (rev 1347498)
@@ -22,11 +22,14 @@
 checkdepends=('python-pytest-asyncio' 'python-pytest-trio' 
'python-typing_extensions' 'python-brotlicffi' 'python-h2' 'python-trustme' 
'uvicorn' 'python-socksio'
               'python-rich' 'python-chardet')
 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
-        "uvicorn-test-server-use-h11.diff")
+        "uvicorn-test-server-use-h11.diff"
+        "httpcore-0.16.0.diff")
 
sha512sums=('3cfdf2b3b2f15967a1eec0be05ed947c5e18a46576b68a9cbfd5147dfd4736cb7c389f5431732b93f3a11f3ec6c6f25f7cbb3d96d845f00b58e2b8dae047c1d5'
-            
'd86ec2b97ca0dda68f023f9d1fbed0cb143e4ae118ac71fe6651f8f65d7130f014c0cc14a9ab490fc09583370141d5827976c334bd1c58aaebcf1a00762214c9')
+            
'd86ec2b97ca0dda68f023f9d1fbed0cb143e4ae118ac71fe6651f8f65d7130f014c0cc14a9ab490fc09583370141d5827976c334bd1c58aaebcf1a00762214c9'
+            
'085729868f7d77bfe6c9a64eafe01d97e22040db5dc9b27d30de0febff328cf95a4b160649aaeea5174ae6d3f5fb21e9dbfb33df4ffe941a03a425f610da7a81')
 
b2sums=('036c66b2c3f743cd069716297f331f0d75043a98180b9db3e156c5692ae8bf9c68d1db87169953a7f44aaf7ee8554d0166f70b508f77b7ff4b0ebc0500bc02ad'
-        
'b67493e9c8d38ae9b64d831b178d8b943a90a3382e381f08792a35c935fa702b094ea962eb653e5b6ad1b5990466d3d0814d166093aa7b9e921632e61d4ebd45')
+        
'b67493e9c8d38ae9b64d831b178d8b943a90a3382e381f08792a35c935fa702b094ea962eb653e5b6ad1b5990466d3d0814d166093aa7b9e921632e61d4ebd45'
+        
'd15e9a864d6c6db808855decbce10c1eee4c05caa979394e4ad43a83555aa9b0970c17a725f91bd1d1a47ddef70df8bbf991e08c7e970dc2433de0088770eb11')
 
 prepare() {
   cd ${_pkgname}-${pkgver}
@@ -34,6 +37,9 @@
   # fix tests
   patch -Np1 -i ../uvicorn-test-server-use-h11.diff
 
+  # fix tests with httpcore 0.16.0; see 
https://github.com/encode/httpx/discussions/2438
+  patch -Np1 -i ../httpcore-0.16.0.diff
+
   # disable -Werror, which often causes failures due to newer dependencies in 
Arch
   sed -i '/\berror\b/d' setup.cfg
 }

Added: httpcore-0.16.0.diff
===================================================================
--- httpcore-0.16.0.diff                                (rev 0)
+++ httpcore-0.16.0.diff        2022-11-14 10:22:59 UTC (rev 1347498)
@@ -0,0 +1,13 @@
+diff --git a/tests/client/test_async_client.py 
b/tests/client/test_async_client.py
+index da2387d..ef7be29 100644
+--- a/tests/client/test_async_client.py
++++ b/tests/client/test_async_client.py
+@@ -173,7 +173,7 @@ async def test_100_continue(server):
+             server.url.copy_with(path="/echo_body"), headers=headers, 
content=content
+         )
+ 
+-    assert response.status_code == 200
++    assert response.status_code == 100
+     assert response.content == content
+ 
+ 

Reply via email to