python3Packages.psautohint: use pytest_6

We prefer using a single version of pytest within pythonPackages.
This commit is contained in:
Robert Schütz 2021-01-29 17:16:28 +01:00
parent 3d19493fa5
commit 2aafd59a1b

View file

@ -2,7 +2,7 @@
, fonttools , fonttools
, lxml, fs # for fonttools extras , lxml, fs # for fonttools extras
, setuptools_scm , setuptools_scm
, pytestCheckHook, pytest_5, pytestcov, pytest_xdist , pytestCheckHook, pytestcov, pytest_xdist
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -30,14 +30,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ fonttools lxml fs ]; propagatedBuildInputs = [ fonttools lxml fs ];
checkInputs = [ checkInputs = [
# Override pytestCheckHook to use pytest v5, because some tests fail on pytest >= v6 pytestCheckHook
# https://github.com/adobe-type-tools/psautohint/issues/284#issuecomment-742800965
# Override might be able to be removed in future, check package dependency pins (coverage.yml)
(pytestCheckHook.override{ pytest = pytest_5; })
pytestcov pytestcov
pytest_xdist pytest_xdist
]; ];
disabledTests = [ disabledTests = [
# Test that fails on pytest >= v6
# https://github.com/adobe-type-tools/psautohint/issues/284#issuecomment-742800965
"test_hashmap_old_version"
# Slow tests, reduces test time from ~5 mins to ~30s # Slow tests, reduces test time from ~5 mins to ~30s
"test_mmufo" "test_mmufo"
"test_flex_ufo" "test_flex_ufo"