Skip to content

Commit

Permalink
python3Packages.jupytext: fix tests
Browse files Browse the repository at this point in the history
Due to improper sandboxing, I didn't notice the failed tests while
upgrading jupytext in NixOS#121648.  The errors come from jupyter_core so
the same fix is used here as there: set $HOME to a writable directory.
  • Loading branch information
AluisioASG committed May 11, 2021
1 parent c594f4e commit c9775b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/jupytext/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ buildPythonPackage rec {
jupyter_client
notebook
];
# pre-commit tests require a Git repository.
# Tests that use a Jupyter notebook require $HOME to be writable.
HOME = "$TMPDIR";
# Pre-commit tests expect the source directory to be a Git repository.
pytestFlagsArray = [ "--ignore-glob='tests/test_pre_commit_*.py'" ];
pythonImportsCheck = [ "jupytext" "jupytext.cli" ];

Expand Down

0 comments on commit c9775b9

Please sign in to comment.