Skip to content

Commit 017c203

Browse files
committed
fix test
1 parent 1f75796 commit 017c203

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/agents/test_gaia_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import uuid
3+
from pathlib import Path
34

45
from tapeagents.steps import ImageObservation
56

@@ -80,14 +81,14 @@ def test_gaia_gym_reset():
8081
config = load_config("gaia_val")
8182
bench = GaiaBenchmark.from_config(config, dataset=mock_dataset())
8283
args = bench.env_args_list[5]
83-
env = args.make_env(exp_dir)
84+
env = args.make_env(Path(exp_dir))
8485
steps, _ = env.reset()
8586
assert len(steps) == 1
8687
assert isinstance(steps[0], GaiaQuestion)
8788
assert steps[0].content.startswith(args.task["Question"])
8889

8990
args = bench.env_args_list[20]
90-
env = args.make_env(exp_dir)
91+
env = args.make_env(Path(exp_dir))
9192
steps, _ = env.reset()
9293
assert len(steps) == 2
9394
assert isinstance(steps[0], GaiaQuestion)

0 commit comments

Comments
 (0)