Your message dated Tue, 11 Mar 2025 23:00:18 +0000
with message-id <e1ts8aa-006q3n...@fasolo.debian.org>
and subject line Bug#1100087: fixed in starlette 0.46.1-2
has caused the Debian Bug report #1100087,
regarding starlette: autopkgtest failure
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1100087: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100087
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: starlette
Version: 0.46.1-1
Severity: serious
Tags: upstream patch
Justification: makes the package unusable
Dear Maintainer,
The autopkgtests fail with the older dependencies in testing due to changes in
the JSON formatting:
89s E assert {'body': '{"a": "123"}'} == {'body': '{"a":"123"}'}
The attached patch fixes the issue by supporting both formats.
Kind Regards,
Bas
diff -Nru starlette-0.46.1/debian/patches/json-format.patch
starlette-0.46.1/debian/patches/json-format.patch
--- starlette-0.46.1/debian/patches/json-format.patch 1970-01-01
01:00:00.000000000 +0100
+++ starlette-0.46.1/debian/patches/json-format.patch 2025-03-11
09:12:42.000000000 +0100
@@ -0,0 +1,34 @@
+Description: Fix test failures with older dependencies in testing.
+Author: Bas Couwenberg <sebas...@debian.org>
+
+--- a/tests/middleware/test_wsgi.py
++++ b/tests/middleware/test_wsgi.py
+@@ -78,7 +78,7 @@ def test_wsgi_post(test_client_factory:
+ client = test_client_factory(app)
+ response = client.post("/", json={"example": 123})
+ assert response.status_code == 200
+- assert response.text == '{"example":123}'
++ assert response.text in ['{"example":123}', '{"example": 123}']
+
+
+ def test_wsgi_exception(test_client_factory: TestClientFactory) -> None:
+--- a/tests/test_requests.py
++++ b/tests/test_requests.py
+@@ -92,7 +92,7 @@ def test_request_body(test_client_factor
+ assert response.json() == {"body": ""}
+
+ response = client.post("/", json={"a": "123"})
+- assert response.json() == {"body": '{"a":"123"}'}
++ assert response.json() in [{"body": '{"a":"123"}'}, {'body': '{"a":
"123"}'}]
+
+ response = client.post("/", data="abc") # type: ignore
+ assert response.json() == {"body": "abc"}
+@@ -113,7 +113,7 @@ def test_request_stream(test_client_fact
+ assert response.json() == {"body": ""}
+
+ response = client.post("/", json={"a": "123"})
+- assert response.json() == {"body": '{"a":"123"}'}
++ assert response.json() in [{"body": '{"a":"123"}'}, {'body': '{"a":
"123"}'}]
+
+ response = client.post("/", data="abc") # type: ignore
+ assert response.json() == {"body": "abc"}
diff -Nru starlette-0.46.1/debian/patches/series
starlette-0.46.1/debian/patches/series
--- starlette-0.46.1/debian/patches/series 1970-01-01 01:00:00.000000000
+0100
+++ starlette-0.46.1/debian/patches/series 2025-03-11 09:12:42.000000000
+0100
@@ -0,0 +1 @@
+json-format.patch
--- End Message ---
--- Begin Message ---
Source: starlette
Source-Version: 0.46.1-2
Done: Santiago Vila <sanv...@debian.org>
We believe that the bug you reported is fixed in the latest version of
starlette, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1100...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <sanv...@debian.org> (supplier of updated starlette package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 11 Mar 2025 22:20:00 +0100
Source: starlette
Architecture: source
Version: 0.46.1-2
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <pi...@debian.org>
Changed-By: Santiago Vila <sanv...@debian.org>
Closes: 1100087
Changes:
starlette (0.46.1-2) unstable; urgency=medium
.
* Team upload.
[ Bas Couwenberg ]
* Fix test failures with older dependencies in testing. Closes: #1100087.
Checksums-Sha1:
862a73275879e47ce1af5176271a0538c45c4737 2116 starlette_0.46.1-2.dsc
dc2f9f1d807c54521e9c4e9b537496826cd9abe8 4336 starlette_0.46.1-2.debian.tar.xz
2fc32518eb64fbf244e1fdb7f4ed215fcc8409de 7159
starlette_0.46.1-2_source.buildinfo
Checksums-Sha256:
9041492b4c88f5478ee3e8766dcf62ee7477f708370431564be497c536bc9ab0 2116
starlette_0.46.1-2.dsc
cfdb0278c4ac4d8d06bce48feb543afd6dcbbcfa55d850ce02e3beb9ba6bcd90 4336
starlette_0.46.1-2.debian.tar.xz
403bf582687e819eb54ee371c3410f2d8672501e7235162e07a135ab3bd6cb9d 7159
starlette_0.46.1-2_source.buildinfo
Files:
a35c53ee091473373f3c280236d32db0 2116 python optional starlette_0.46.1-2.dsc
5949e67fce0deca1bf18af9b67b363b2 4336 python optional
starlette_0.46.1-2.debian.tar.xz
e1d792531098c8254c6395a81421fade 7159 python optional
starlette_0.46.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmfQqugACgkQQc5/C58b
izId7QgAgfgwanD6TouItiNJTrkkzVh+HL1r03vRbb7M2+4NrSqXgf576JY2kM0l
zZbgUdMPMWyBrO94O9HDWGgBj+uARwsLCh67Qx0Srwu20DnhiJJQ0obsoPWayE2j
v/IoLVw1sRxfHGHHfjk+UIWk6f25NSeFPNDUq0UTV8p7atuzsk7HtkAfCt12boFy
IBbwlA4X538FNWTs0eCCdSWF3Rv+yZUaiqyVFE32KCKwCnziqxBN5bp1ZBy0/VV8
GHIyrxWFpuSSA+BYlT3MauUQo6XKi/dBdI12YlyYg9h+OSATGkbUNey4vVB3OVQR
ZbyxZFahscxqOFL3PdS4A7X+Qa6iYQ==
=RCKH
-----END PGP SIGNATURE-----
pgpQSTlhTVqtO.pgp
Description: PGP signature
--- End Message ---