~ruther/guix-local

09a342bc785cca12e895f7376c5febf89f90467e — Sharlatan Hellseher 1 year, 5 months ago c865772
gnu: python-pydevd: Enable parallel tests.

* gnu/packages/python-xyz.scm (python-pydevd)
[arguments]<test-flags>: Enable parallel tests, passing on 16 threads
and with a fresh version of python-pytest.
<phases>: Remove test deletion procedure from 'fix-tests as
all of them passing.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: Iab5a87428f6ffd440a966fa357daf2c189fef708
1 files changed, 5 insertions(+), 8 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +5 -8
@@ 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")