From 871cd876a1bf607391be0c4f41123033085dbd13 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 16 Oct 2020 09:50:21 -0700 Subject: [PATCH] python3Packages.pytest_xdist_2: fix tests with latest pytest6 --- pkgs/development/python-modules/pytest-xdist/2.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-xdist/2.nix b/pkgs/development/python-modules/pytest-xdist/2.nix index ea4741cab603..cc58c5ab6bde 100644 --- a/pkgs/development/python-modules/pytest-xdist/2.nix +++ b/pkgs/development/python-modules/pytest-xdist/2.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "82d938f1a24186520e2d9d3a64ef7d9ac7ecdf1a0659e095d18e596b8cbd0672"; + sha256 = "0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2"; }; nativeBuildInputs = [ setuptools_scm pytest_6 ]; @@ -16,10 +16,12 @@ buildPythonPackage rec { propagatedBuildInputs = [ execnet pytest-forked psutil six ]; # pytest6 doesn't allow for new lines + # capture_deprecated not compatible with latest pytest6 checkPhase = '' # Excluded tests access file system export HOME=$TMPDIR - pytest -n $NIX_BUILD_CORES -k "not (distribution_rsyncdirs_example or rsync)" + pytest -n $NIX_BUILD_CORES \ + -k "not (distribution_rsyncdirs_example or rsync or warning_captured_deprecated_in_pytest_6)" ''; meta = with stdenv.lib; {