diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index c2079fa84f90..2ac28ccb8e67 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -42,7 +42,7 @@ function pytestCheckPhase() { echo "Disabled test file \"$file\" does not exist. Aborting" exit 1 fi - args+=" --ignore=$file" + args+=" --ignore=\"$file\"" done args+=" ${pytestFlagsArray[@]}" eval "@pythonCheckInterpreter@ $args"