python312Packages.pytest-mpl: fix Segmentation fault

remove unnecessary preCheck setup
This commit is contained in:
natsukium
2024-10-13 11:09:55 +02:00
committed by Martin Weinelt
parent b6061023cf
commit 2e43211db3
@@ -47,11 +47,6 @@ buildPythonPackage rec {
# https://github.com/matplotlib/pytest-mpl/pull/9
# https://github.com/matplotlib/pytest-mpl/issues/225
preCheck = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
substituteInPlace pytest_mpl/plugin.py \
--replace-fail "DEFAULT_TOLERANCE = 2" "DEFAULT_TOLERANCE = 10"
substituteInPlace tests/test_pytest_mpl.py \