Skip to content

Commit 79e983b

Browse files
committed
Fix LEAPP env YAML test loading
1 parent 5cf4636 commit 79e983b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/isaaclab_rl/test/export/test_leapp_export_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def _assert_leapp_artifacts(export_root: Path, task_name: str) -> None:
260260

261261
env_path = export_dir / "env.yaml"
262262
assert env_path.is_file(), f"Missing env.yaml in {export_dir}"
263-
env = yaml.safe_load(env_path.read_text(encoding="utf-8"))
263+
env = yaml.full_load(env_path.read_text(encoding="utf-8"))
264264
assert policy_frequency == pytest.approx(1.0 / (env["sim"]["dt"] * env["decimation"]))
265265

266266

source/isaaclab_rl/test/export/test_rsl_rl_direct_export_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_direct_env_export_flow():
196196
with open(yaml_path, encoding="utf-8") as stream:
197197
graph = yaml.safe_load(stream)
198198
with open(env_yaml_path, encoding="utf-8") as stream:
199-
env = yaml.safe_load(stream)
199+
env = yaml.full_load(stream)
200200
assert graph["pipeline"]["configs"]["frequency"] == pytest.approx(1.0 / (env["sim"]["dt"] * env["decimation"]))
201201

202202

0 commit comments

Comments
 (0)