mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
f7e75c7d5a
commit
815db759e1
+3
@@ -20,6 +20,9 @@ class PyEnvTestExample {
|
||||
|
||||
@Test
|
||||
fun testSdk(@PythonSdk sdk: Sdk) { ... }
|
||||
|
||||
@Test // This is a base conda path!
|
||||
fun testSdk(@PythonBinaryPath pythonExe: PythonBinary) { ... }
|
||||
}
|
||||
* ```
|
||||
*/
|
||||
|
||||
Vendored
+4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user