diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-05-06 02:15:51 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:19:26 +0100 |
| commit | 03c8bfc630e17918f8e7141332eec6004a53685b (patch) | |
| tree | 3181f39dcd0de0d9b0a5f767becb6588b9dc975c /gnu/packages/python-web.scm | |
| parent | 7971513884ff0f39cfe661d9e071dd4cfda894f2 (diff) | |
gnu: python-querystring-parser: Fix tests on Python@3.12.
* gnu/packages/python-web.scm
(python-querystring-parser)[arguments]<#:phases>:
Drop replacement of 'check. Add 'fix-python-incompatibilities.
<#:test-backend, #:test-flags>: Set them.
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 72ce3eb63f7..ea7142e0573 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm | |||
| @@ -5773,16 +5773,20 @@ can utilise asyncio, uvloop, or trio worker types.") | |||
| 5773 | (build-system pyproject-build-system) | 5773 | (build-system pyproject-build-system) |
| 5774 | (arguments | 5774 | (arguments |
| 5775 | (list | 5775 | (list |
| 5776 | #:test-backend #~'custom | ||
| 5777 | #:test-flags #~(list "querystring_parser/tests.py") | ||
| 5776 | #:phases | 5778 | #:phases |
| 5777 | #~(modify-phases %standard-phases | 5779 | #~(modify-phases %standard-phases |
| 5778 | (replace 'check | 5780 | (add-after 'unpack 'fix-python-incompatibilities |
| 5779 | (lambda _ | 5781 | (lambda _ |
| 5780 | ;; XXX FIXME: This test is broken with Python 3.7: | ||
| 5781 | ;; https://github.com/bernii/querystring-parser/issues/35 | ||
| 5782 | (substitute* "querystring_parser/tests.py" | 5782 | (substitute* "querystring_parser/tests.py" |
| 5783 | ;; XXX FIXME: This test is broken with Python 3.7: | ||
| 5784 | ;; https://github.com/bernii/querystring-parser/issues/35 | ||
| 5783 | (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)") | 5785 | (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)") |
| 5784 | "True")) | 5786 | "True") |
| 5785 | (invoke "python" "querystring_parser/tests.py")))))) | 5787 | ;; Removed in Python 3.12. |
| 5788 | (("assertEquals") | ||
| 5789 | "assertEqual"))))))) | ||
| 5786 | (native-inputs (list python-setuptools)) | 5790 | (native-inputs (list python-setuptools)) |
| 5787 | (propagated-inputs (list python-six)) | 5791 | (propagated-inputs (list python-six)) |
| 5788 | (home-page "https://github.com/bernii/querystring-parser") | 5792 | (home-page "https://github.com/bernii/querystring-parser") |
