File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import os
22import uuid
3+ from pathlib import Path
34
45from 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 )
You can’t perform that action at this time.
0 commit comments