pytest: disable tests on pypy

Bug in tests. See https://github.com/pytest-dev/pytest/issues/3460
This commit is contained in:
leo60228 2019-01-10 14:08:01 -05:00 committed by Frederik Rietdijk
parent 25a77b7210
commit b9ea613f43

View File

@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, attrs, hypothesis, py { stdenv, buildPythonPackage, pythonOlder, fetchPypi, attrs, hypothesis, py
, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k, more-itertools , setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k, more-itertools
, atomicwrites, mock, writeText, pathlib2, wcwidth, packaging , atomicwrites, mock, writeText, pathlib2, wcwidth, packaging, isPyPy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.6.3"; version = "4.6.3";
@ -22,6 +22,7 @@ buildPythonPackage rec {
++ stdenv.lib.optionals (!isPy3k) [ funcsigs ] ++ stdenv.lib.optionals (!isPy3k) [ funcsigs ]
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ]; ++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
doCheck = !isPyPy; # https://github.com/pytest-dev/pytest/issues/3460
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
$out/bin/py.test -x testing/ -k "not test_collect_pyargs_with_testpaths" $out/bin/py.test -x testing/ -k "not test_collect_pyargs_with_testpaths"