diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2021-03-24 13:27:31 -0700 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2021-04-03 17:49:55 +0200 |
commit | 43769c051c90cffb1eb7a3f7d4c7da52df332fc9 (patch) | |
tree | 2ba120c09b8979437f3446a9f1f7278aaa1f8b3e /pkgs/development/python-modules/pytest | |
parent | 5869be510301d2ffef7621c03e27897a026bee56 (diff) |
python3Packages.pytest: fix tests
Diffstat (limited to 'pkgs/development/python-modules/pytest')
-rw-r--r-- | pkgs/development/python-modules/pytest/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pytest/default.nix b/pkgs/development/python-modules/pytest/default.nix index 579cfe1271f3a..4c6d76833ed33 100644 --- a/pkgs/development/python-modules/pytest/default.nix +++ b/pkgs/development/python-modules/pytest/default.nix @@ -56,9 +56,12 @@ buildPythonPackage rec { ''; # Ignored file https://github.com/pytest-dev/pytest/pull/5605#issuecomment-522243929 + # test_missing_required_plugins will emit deprecation warning which is treated as error checkPhase = '' runHook preCheck - $out/bin/py.test -x testing/ -k "not test_collect_pyargs_with_testpaths" --ignore=testing/test_junitxml.py + $out/bin/py.test -x testing/ \ + --ignore=testing/test_junitxml.py \ + -k "not test_collect_pyargs_with_testpaths and not test_missing_required_plugins" # tests leave behind unreproducible pytest binaries in the output directory, remove: find $out/lib -name "*-pytest-${version}.pyc" -delete |