From a5f1cf97b6854e3dae3b37c57676c9a3103567d7 Mon Sep 17 00:00:00 2001 From: Aiken Cairncross Date: Sat, 3 Oct 2020 14:19:40 +0100 Subject: [PATCH] python3Packages.nbval: Fix tests --- pkgs/development/python-modules/nbval/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/nbval/default.nix b/pkgs/development/python-modules/nbval/default.nix index 198f139b112..704bc21d7e1 100644 --- a/pkgs/development/python-modules/nbval/default.nix +++ b/pkgs/development/python-modules/nbval/default.nix @@ -40,8 +40,12 @@ buildPythonPackage rec { six ]; - # ignore impure tests + # Set HOME so that matplotlib doesn't try to use + # /homeless-shelter/.config/matplotlib, otherwise some of the tests fail for + # having an unexpected warning on stderr produced by matplotlib. + # Ignore impure tests. checkPhase = '' + export HOME=$(mktemp -d) pytest tests --ignore tests/test_timeouts.py '';