mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 19:10:49 +02:00
gnu: python-natsort: Fix the test suite on slower machines.
* gnu/packages/python-xyz.scm (python-natsort)[arguments]: Add custom phase to remove the time limit for some of the tests.
This commit is contained in:
parent
fd305cd960
commit
04f813ec63
1 changed files with 7 additions and 0 deletions
|
@ -18194,6 +18194,13 @@ JSON) codec.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-test-hypothesis-deadlines
|
||||||
|
(lambda _
|
||||||
|
(substitute* "tests/test_utils.py"
|
||||||
|
(("from hypothesis import given")
|
||||||
|
"from hypothesis import given, settings")
|
||||||
|
(("( +)@given" all spaces)
|
||||||
|
(string-append spaces "@settings(deadline=None)\n" all)))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue