From 09a342bc785cca12e895f7376c5febf89f90467e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 22:47:54 +0000 Subject: [PATCH] gnu: python-pydevd: Enable parallel tests. * gnu/packages/python-xyz.scm (python-pydevd) [arguments]: Enable parallel tests, passing on 16 threads and with a fresh version of python-pytest. : Remove test deletion procedure from 'fix-tests as all of them passing. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: Iab5a87428f6ffd440a966fa357daf2c189fef708 --- gnu/packages/python-xyz.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a757d5d476a..1a54a764858 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17697,7 +17697,7 @@ libmagic."))) (arguments (list #:test-flags - #~(list "-n" "0" ; fails: (number->string (parallel-job-count)) + #~(list "-n" (number->string (parallel-job-count)) "-k" (string-append ;; The two "break_01" tests have been failing on @@ -17719,12 +17719,7 @@ libmagic."))) (substitute* "tests_python/test_convert_utilities.py" ;; Add missing trailing '/'. (("\"\\\\\\\\usr\\\\\\\\bin\\\\\\\\\") == \"/usr/bin" all) - (string-append all "/"))) - ;; pytest-xdist's parallel tests would fail that test. - ;; So we disabled parallel tests. - ;(delete-file "tests_python/test_utilities.py") ; test_is_main_thread - ;; TODO: fix. - (delete-file "tests_python/test_debugger_json.py"))) ; test_soft_terminate timeout + (string-append all "/"))))) (add-after 'unpack 'patch-command-paths (lambda* (#:key inputs #:allow-other-keys) (substitute* "_pydevd_bundle/pydevd_api.py" @@ -17772,8 +17767,10 @@ libmagic."))) python-psutil python-pytest python-pytest-xdist + python-setuptools python-trio - python-untangle)) + python-untangle + python-wheel)) (inputs (list coreutils gdb/pinned procps)) (home-page "https://github.com/fabioz/PyDev.Debugger/") (synopsis "Python debugger")