Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.09k stars 604 forks source link

fix pytest warns #218

Closed rodrigodelazcano closed 2 years ago

rodrigodelazcano commented 2 years ago

Description

pytest.warns(None) is deprecated and pytest.warns() is expecting to have warnings during test, if not the test fails. As another option for recording test with possibly no-warnings use warnings.catch_warnings(record=True) as suggested in https://github.com/pytest-dev/pytest/issues/9002

Type of change

Please delete options that are not relevant.

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist: