fix(test): use SyncVectorEnv in test_base_create_envs

AsyncVectorEnv spawns new subprocesses that do not inherit the
in-process gym registration created by the test. Pass
use_async_envs=False since this test validates dispatch logic,
not async parallelism.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Pepijn
2026-04-09 15:12:52 +02:00
parent c454d2913f
commit 415c504567
+1 -1
View File
@@ -87,7 +87,7 @@ def test_base_create_envs():
return {}
try:
envs = _Env().create_envs(n_envs=2)
envs = _Env().create_envs(n_envs=2, use_async_envs=False)
assert "_dispatch_base_test" in envs
env = envs["_dispatch_base_test"][0]
assert isinstance(env, gym.vector.VectorEnv)