Closed bionicles closed 4 years ago
Hi @bionicles,
Thanks for the test. It doesn't seem to be a prob on my machine. I ran your test, and here is my output:
=============================================================================== test session starts ===============================================================================
platform darwin -- Python 3.6.1, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /Users/hadavid/devel/slimevolleygym, inifile:
plugins: cov-2.5.1
collected 1 items
tests/test_envs.py check env SlimeVolley-v0
/Users/hadavid/anaconda/lib/python3.6/site-packages/gym/logger.py:30: UserWarning: WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
check env SlimeVolleyPixel-v0
check env SlimeVolleyNoFrameskip-v0
.
============================================================================ 1 passed in 1.01 seconds =============================================================================
My windows also close properly.
Here are the list of relevant packages I use:
Python 3.6.1 :: Anaconda 4.4.0 (x86_64)
gym 0.11.0
pyglet 1.5.0
I while back I noticed that their viewer didn't close the window properly, and at the time I submitted a PR to gym that fixed it and it was merged:
But I'll merge the PR you submitted anyways since I think it'll help close all the windows at the right time, thanks.
when you run this code:
the windows don't seem to close when we call env.close -- they stay open until the whole script is done.
How do you close the render window, or is this test code screwed up?