Skip to content

Commit

Permalink
tests: fix python env leak test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 5, 2025
1 parent c1e6c8e commit 7f756cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/git-hooks-no-python-leak/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
git-hooks.hooks.nixfmt-rfc-style.enable = true;

enterTest = ''
if [ -n "$PYTHONPATH" ]; then
if [ -n "''${PYTHONPATH:-}" ]; then
echo "PYTHONPATH is non-empty: $PYTHONPATH" >&2
echo "The pre-commit package is leaking its dependencies into the environment." >&2
exit 1
Expand Down

0 comments on commit 7f756cd

Please sign in to comment.