apteryx pushed a commit to branch wip-ipython+polyglossia in repository guix.
commit 037f56c375809455388df4af837d9e0171cfcc11 Author: Maxim Cournoyer <[email protected]> AuthorDate: Mon Apr 18 01:23:56 2022 -0400 gnu: python-sqlalchemy: Run tests in parallel via xdist. * gnu/packages/databases.scm (python-sqlalchemy)[phases]{check}: Run tests in parallel; skip slow test_memusage. --- gnu/packages/databases.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 4472677ab3..5746d25c0e 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -32,7 +32,7 @@ ;;; Copyright © 2017 Kristofer Buffington <[email protected]> ;;; Copyright © 2018 Amirouche Boubekki <[email protected]> ;;; Copyright © 2018 Joshua Sierles, Nextjournal <[email protected]> -;;; Copyright © 2018, 2021 Maxim Cournoyer <[email protected]> +;;; Copyright © 2018, 2021, 2022 Maxim Cournoyer <[email protected]> ;;; Copyright © 2019 Jack Hill <[email protected]> ;;; Copyright © 2019 Alex Griffin <[email protected]> ;;; Copyright © 2019 Gábor Boskovits <[email protected]> @@ -3364,7 +3364,7 @@ Database API 2.0T.") (build-system python-build-system) (native-inputs (list python-cython ; for C extensions - python-pytest python-mock)) ; for tests + python-pytest python-mock python-pytest-xdist)) ; for tests (propagated-inputs (list python-greenlet)) (arguments @@ -3373,7 +3373,11 @@ Database API 2.0T.") (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "py.test"))))))) + (invoke "pytest" "-vv" + "-n" (number->string (parallel-job-count)) + ;; The memory usage tests are very expensive and run in + ;; sequence; skip them. + "-k" "not test_memusage.py"))))))) (home-page "https://www.sqlalchemy.org") (synopsis "Database abstraction library") (description
