File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ def set_up_workspace() -> None:
67
67
#
68
68
# However, it also can't be created more than once so we need to check `is None`.
69
69
if GymlibIntegtestManager .DBGYM_WORKSPACE is None :
70
+ # Reset this in case it had been created by a test *not* using GymlibIntegtestManager.set_up_workspace().
71
+ DBGymWorkspace .num_times_created_this_run = 0
70
72
GymlibIntegtestManager .DBGYM_WORKSPACE = DBGymWorkspace (workspace_path )
71
73
72
74
@staticmethod
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ class DBGymWorkspace:
131
131
132
132
def __init__ (self , dbgym_workspace_path : Path ):
133
133
# The logic around dbgym_tmp_path assumes that DBGymWorkspace is only constructed once.
134
+ # This is because DBGymWorkspace creates a new run_*/ dir when it's initialized.
134
135
DBGymWorkspace .num_times_created_this_run += 1
135
136
assert (
136
137
DBGymWorkspace .num_times_created_this_run == 1
You can’t perform that action at this time.
0 commit comments