Skip to content

Commit 5fd8632

Browse files
authored
[chore] Use local import for conda instead (#51290)
`conda` is not specified in `requirements.txt`. A ModuleNotFoundError is thrown when I try to run a test in the file for debugging. Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
1 parent a62e4a0 commit 5fd8632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ray/tests/test_task_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from collections import defaultdict
22
from typing import Dict
33

4-
import conda
54
import os
65
import pytest
76
import sys
@@ -272,6 +271,8 @@ def task():
272271

273272

274273
def test_failed_task_runtime_env_setup(shutdown_only):
274+
import conda
275+
275276
@ray.remote
276277
def f():
277278
pass

0 commit comments

Comments
 (0)