Skip to content

Commit 7f756cd

Browse files
committed
tests: fix python env leak test
1 parent c1e6c8e commit 7f756cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/git-hooks-no-python-leak/devenv.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
git-hooks.hooks.nixfmt-rfc-style.enable = true;
44

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

0 commit comments

Comments
 (0)