Skip to content

Commit

Permalink
disabled pickling for now due to upstream bug in gym
Browse files Browse the repository at this point in the history
  • Loading branch information
benblack769 committed Feb 24, 2022
1 parent b5d38b3 commit 1b81351
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/pytest_runner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import pickle
from .all_modules import all_environments
from pettingzoo.test.api_test import api_test
from pettingzoo.test.seed_test import seed_test, check_environment_deterministic
Expand Down Expand Up @@ -29,9 +28,9 @@ def test_module(name, env_module):
if ("butterfly/" in name) or ("mpe/" in name) or ("magent/" in name):
state_test(_env, env_module.parallel_env())

recreated_env = pickle.loads(pickle.dumps(_env))
recreated_env.seed(42)
api_test(recreated_env)
# recreated_env = pickle.loads(pickle.dumps(_env))
# recreated_env.seed(42)
# api_test(recreated_env)


def test_conversions():
Expand Down

0 comments on commit 1b81351

Please sign in to comment.