Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Name the encoding on two more diffusion.py reads in test_diffusion_zimage_cfg_split (#15040)

Daniel Han66dfb16018df
diff --git a/studio/backend/tests/test_diffusion_zimage_cfg_split.py b/studio/backend/tests/test_diffusion_zimage_cfg_split.py
index 92143e134e5..6f746934166 100644
--- a/studio/backend/tests/test_diffusion_zimage_cfg_split.py
+++ b/studio/backend/tests/test_diffusion_zimage_cfg_split.py
@@ -548,7 +548,7 @@ def test_studio_guard_passes_the_auto_step_cache_prediction():
import ast
import pathlib
- source = pathlib.Path(zs.__file__).with_name("diffusion.py").read_text()
+ source = pathlib.Path(zs.__file__).with_name("diffusion.py").read_text(encoding = "utf-8")
tree = ast.parse(source)
calls = [
node
@@ -745,4 +745,4 @@ def test_studio_guard_disengages_a_pending_auto_cache_before_pricing():
def _diffusion_source():
import pathlib
- return pathlib.Path(zs.__file__).with_name("diffusion.py").read_text()
+ return pathlib.Path(zs.__file__).with_name("diffusion.py").read_text(encoding = "utf-8")