Skip to content

Commit 4263874

Browse files
fix automl pipeline unitests
Signed-off-by: Mateusz Switala <mswitala@redhat.com> Assisted-by: Claude Code
1 parent 3db1c9d commit 4263874

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pipelines/training/automl/autogluon_timeseries_training_pipeline/tests/test_pipeline_unit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ def test_compiled_pipeline_yaml_is_ascii_only(self):
110110
pipeline_func=autogluon_timeseries_training_pipeline,
111111
package_path=tmp_path,
112112
)
113-
content = Path(tmp_path).read_bytes()
113+
content_bytes = Path(tmp_path).read_bytes()
114114
try:
115-
content.decode("ascii")
115+
content = content_bytes.decode("ascii")
116116
except UnicodeDecodeError as exc:
117117
pytest.fail(f"Compiled pipeline YAML must be ASCII-only: {exc}")
118118
finally:

0 commit comments

Comments
 (0)