Skip to content

Commit 8c5e0b2

Browse files
authored
Close env after test (#334)
1 parent 0988186 commit 8c5e0b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/helpers.py

+3
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ def step_env_with_gym_quirks(test_case,
4242
# Roundtrip serialization
4343
round_trip = pickle.loads(pickle.dumps(env))
4444
assert round_trip.env.spec == env.env.spec
45+
46+
if not spec.id in KNOWN_GYM_CLOSE_BROKEN:
47+
env.close()

0 commit comments

Comments
 (0)