8 buildPythonPackage rec {
9 pname = "pytest-tests";
10 inherit (pytest) version;
22 doCheck = !isPyPy; # https://github.com/pytest-dev/pytest/issues/3460
24 # Ignored file https://github.com/pytest-dev/pytest/pull/5605#issuecomment-522243929
25 # test_missing_required_plugins will emit deprecation warning which is treated as error
28 ${pytest.out}/bin/py.test -x testing/ \
29 --ignore=testing/test_junitxml.py \
30 --ignore=testing/test_argcomplete.py \
31 -k "not test_collect_pyargs_with_testpaths and not test_missing_required_plugins"
33 # tests leave behind unreproducible pytest binaries in the output directory, remove:
34 find $out/lib -name "*-pytest-${version}.pyc" -delete
35 # specifically testing/test_assertion.py and testing/test_assertrewrite.py leave behind those:
36 find $out/lib -name "*opt-2.pyc" -delete