tests [python]: Fix NoCondaAndVenAsSystemPythonsTest.

It is perfectly valid to have conda base python injected as `PythonBinaryPath` .

However, it should not be system python


(cherry picked from commit 40f81a8897927c00eb49d2ed94ec93a422f58cdf)

IJ-CR-220955

GitOrigin-RevId: cf75731a694dd693fb2ec41abf432ad9065b3b24
This commit is contained in:
Ilya.Kazakevich
2026-08-31 11:02:19 +00:00
committed by intellij-monorepo-bot
parent f7e75c7d5a
commit 815db759e1
2 changed files with 7 additions and 0 deletions
@@ -20,6 +20,9 @@ class PyEnvTestExample {
@Test
fun testSdk(@PythonSdk sdk: Sdk) { ... }
@Test // This is a base conda path!
fun testSdk(@PythonBinaryPath pythonExe: PythonBinary) { ... }
}
* ```
*/
@@ -1,6 +1,8 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.python.junit5Tests.framework.env
import com.intellij.python.community.junit5Tests.framework.conda.PyEnvTestCaseWithConda
/**
* Mark [java.nio.file.Path] test parameter to get first python binary for env test.
*
@@ -9,6 +11,8 @@ package com.intellij.python.junit5Tests.framework.env
* @Test
* fun checkPythonPath(@PythonSdkPath path: PythonBinary) // Path is python.exe for example
* ```
*
* When used with [PyEnvTestCaseWithConda], ponts to conda base path.
*/
@Target(AnnotationTarget.VALUE_PARAMETER)