diff --git a/python/junit5Tests-framework/src/com/intellij/python/junit5Tests/TestTools.kt b/python/junit5Tests-framework/src/com/intellij/python/junit5Tests/TestTools.kt index 5f8fcbd0f6da..b6f0cc893736 100644 --- a/python/junit5Tests-framework/src/com/intellij/python/junit5Tests/TestTools.kt +++ b/python/junit5Tests-framework/src/com/intellij/python/junit5Tests/TestTools.kt @@ -18,14 +18,15 @@ import kotlin.io.path.Path /** * Binary that isn't python. To be used to test validation. */ -val randomBinary: PythonBinary = Path( - if (SystemInfoRt.isWindows) { - // ftp.exe is faster than cmd.exe and powershell.exe - PathEnvironmentVariableUtil.findInPath("ftp.exe")?.path ?: error("No ftp on Windows?") - } - else { - "/bin/sh" - }) +val randomBinary: PythonBinary + get() = Path( + if (SystemInfoRt.isWindows) { + // ftp.exe is faster than cmd.exe and powershell.exe + PathEnvironmentVariableUtil.findInPath("ftp.exe")?.path ?: error("No ftp on Windows?") + } + else { + "/bin/sh" + }) /** * Fails if [this] is not [Result.Failure]