Skip to content

Conversation

@KaleabTessera
Copy link
Contributor

What?

Fixes broken tests due to new gym version.

  • New gym version (0.22.0) breaks our tests. This is related to the output of wrapped_env.action_spaces[agent].sample() for pettingzoo.mpe.simple_spread_v2. Old version returns {'agent_0': 3, 'agent_1': 3, 'agent_2': 3} , new version returns {'agent_0': 0, 'agent_1': 0, 'agent_2': 0} - i.e. no_action resulting observations not being updated and thus the test fails.

Why?

Fix tests.

How?

Change seed and specify gym version so this doesn't happen in the future.

Extra

Closes #420

Copy link
Collaborator

@arnupretorius arnupretorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @KaleabTessera 🙌

Copy link
Collaborator

@RuanJohn RuanJohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @KaleabTessera 🔥

@KaleabTessera KaleabTessera merged commit 548be59 into develop Feb 21, 2022
@KaleabTessera KaleabTessera deleted the fix/gym-version-test-bug branch February 21, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] New Gym version breaks tests

4 participants