python311Packages.celery: use xdist to speed up checkPhase

Before the tests took ~110 sec, now they only take ~19 sec.
One tests seems to fail because of that but with subtests we have 30k
tests which should verify that things work regardless.
This commit is contained in:
Sandro Jäckel 2024-01-17 00:57:59 +01:00
parent 8f5a43ef77
commit 141fcec032
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -18,6 +18,7 @@
, pytest-click
, pytest-subtests
, pytest-timeout
, pytest-xdist
, pytestCheckHook
, python-dateutil
, pythonOlder
@ -63,6 +64,7 @@ buildPythonPackage rec {
pytest-click
pytest-subtests
pytest-timeout
pytest-xdist
pytestCheckHook
];
@ -77,6 +79,10 @@ buildPythonPackage rec {
disabledTests = [
"msgpack"
"test_check_privileges_no_fchown"
# fails with pytest-xdist
"test_itercapture_limit"
"test_stamping_headers_in_options"
"test_stamping_with_replace"
] ++ lib.optionals stdenv.isDarwin [
# too many open files on hydra
"test_cleanup"