Skip to content

Commit 9b5a2b5

Browse files
committed
Remove assertion for Mujoco viewer close (#334)
This problem is resolved by #340
1 parent 23cfbf3 commit 9b5a2b5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/helpers.py

-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pickle
22

3-
from tests.quirks import KNOWN_GYM_CLOSE_BROKEN
43
from tests.quirks import KNOWN_GYM_RENDER_NOT_IMPLEMENTED
54

65

@@ -43,10 +42,3 @@ def step_env_with_gym_quirks(test_case,
4342
# Roundtrip serialization
4443
round_trip = pickle.loads(pickle.dumps(env))
4544
assert round_trip.env.spec == env.env.spec
46-
47-
if not spec.id in KNOWN_GYM_CLOSE_BROKEN:
48-
env.close()
49-
else:
50-
with test_case.assertRaisesRegex(
51-
AttributeError, "'MjViewer' object has no attribute 'finish'"):
52-
env.close()

0 commit comments

Comments
 (0)