From 45e5ebfad8988b1c59e788632176659e53693f45 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 24 Jan 2021 16:27:21 +0100 Subject: [PATCH] pytestCheckHook: Fix support for spaces in disabled file paths --- pkgs/development/interpreters/python/hooks/pytest-check-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"