From 947b857bd42cffb6adc4c23568ed7df21f23ead0 Mon Sep 17 00:00:00 2001 From: Ariel Kwiatkowski Date: Wed, 29 Sep 2021 01:53:30 +0200 Subject: [PATCH] Test refactoring (#2427) * Move tests to root with automatic PyCharm import refactoring. This will likely fail some tests * Changed entry point for a registration test env. * Move a stray lunar_lander test to tests/envs/... * black * Change the version from which importlib_metadata is replaced with importlib.metadata. Also requiring installing importlib_metadata for python 3.8 now. ??????????? * Undo last commit --- scripts/generate_json.py | 4 ++-- {gym/tests => tests}/__init__.py | 0 {gym/tests => tests}/envs/__init__.py | 0 {gym/tests => tests}/envs/robotics/__init__.py | 0 {gym/tests => tests}/envs/robotics/hand/__init__.py | 0 {gym/tests => tests}/envs/robotics/hand/test_manipulate.py | 2 +- .../envs/robotics/hand/test_manipulate_touch_sensors.py | 2 +- {gym/tests => tests}/envs/robotics/hand/test_reach.py | 2 +- {gym/tests => tests}/envs/rollout.json | 0 {gym/tests => tests}/envs/spec_list.py | 0 {gym/tests => tests}/envs/test_atari_legacy_env_specs.py | 0 {gym/tests => tests}/envs/test_determinism.py | 2 +- {gym/tests => tests}/envs/test_envs.py | 2 +- {gym/tests => tests}/envs/test_envs_semantics.py | 2 +- {gym/tests => tests}/envs/test_frozenlake_dfs.py | 0 {gym/envs/box2d => tests/envs}/test_lunar_lander.py | 6 +++++- .../tests => tests}/envs/test_mujoco_v2_to_v3_conversion.py | 2 +- {gym/tests => tests}/envs/test_registration.py | 2 +- {gym/tests => tests}/spaces/__init__.py | 0 {gym/tests => tests}/spaces/test_spaces.py | 0 {gym/tests => tests}/spaces/test_utils.py | 0 {gym/tests => tests}/test_core.py | 0 {gym/tests => tests}/utils/__init__.py | 0 {gym/tests => tests}/utils/test_atexit.py | 0 {gym/tests => tests}/utils/test_env_checker.py | 0 {gym/tests => tests}/utils/test_seeding.py | 0 {gym/tests => tests}/vector/__init__.py | 0 {gym/tests => tests}/vector/test_async_vector_env.py | 2 +- {gym/tests => tests}/vector/test_numpy_utils.py | 2 +- {gym/tests => tests}/vector/test_shared_memory.py | 2 +- {gym/tests => tests}/vector/test_spaces.py | 2 +- {gym/tests => tests}/vector/test_sync_vector_env.py | 2 +- {gym/tests => tests}/vector/test_vector_env.py | 2 +- {gym/tests => tests}/vector/test_vector_env_wrapper.py | 0 {gym/tests => tests}/vector/utils.py | 0 {gym/tests => tests}/wrappers/__init__.py | 0 {gym/tests => tests}/wrappers/flatten_test.py | 0 {gym/tests => tests}/wrappers/monitoring/__init__.py | 0 {gym/tests => tests}/wrappers/monitoring/helpers.py | 0 .../wrappers/monitoring/test_video_recorder.py | 0 {gym/tests => tests}/wrappers/nested_dict_test.py | 0 {gym/tests => tests}/wrappers/test_atari_preprocessing.py | 0 {gym/tests => tests}/wrappers/test_clip_action.py | 0 {gym/tests => tests}/wrappers/test_filter_observation.py | 0 {gym/tests => tests}/wrappers/test_flatten_observation.py | 0 {gym/tests => tests}/wrappers/test_frame_stack.py | 0 .../tests => tests}/wrappers/test_gray_scale_observation.py | 0 {gym/tests => tests}/wrappers/test_normalize.py | 0 {gym/tests => tests}/wrappers/test_pixel_observation.py | 0 .../wrappers/test_record_episode_statistics.py | 0 {gym/tests => tests}/wrappers/test_record_video.py | 0 {gym/tests => tests}/wrappers/test_rescale_action.py | 0 {gym/tests => tests}/wrappers/test_resize_observation.py | 0 .../tests => tests}/wrappers/test_time_aware_observation.py | 0 {gym/tests => tests}/wrappers/test_transform_observation.py | 0 {gym/tests => tests}/wrappers/test_transform_reward.py | 0 56 files changed, 21 insertions(+), 17 deletions(-) rename {gym/tests => tests}/__init__.py (100%) rename {gym/tests => tests}/envs/__init__.py (100%) rename {gym/tests => tests}/envs/robotics/__init__.py (100%) rename {gym/tests => tests}/envs/robotics/hand/__init__.py (100%) rename {gym/tests => tests}/envs/robotics/hand/test_manipulate.py (88%) rename {gym/tests => tests}/envs/robotics/hand/test_manipulate_touch_sensors.py (88%) rename {gym/tests => tests}/envs/robotics/hand/test_reach.py (84%) rename {gym/tests => tests}/envs/rollout.json (100%) rename {gym/tests => tests}/envs/spec_list.py (100%) rename {gym/tests => tests}/envs/test_atari_legacy_env_specs.py (100%) rename {gym/tests => tests}/envs/test_determinism.py (98%) rename {gym/tests => tests}/envs/test_envs.py (98%) rename {gym/tests => tests}/envs/test_envs_semantics.py (98%) rename {gym/tests => tests}/envs/test_frozenlake_dfs.py (100%) rename {gym/envs/box2d => tests/envs}/test_lunar_lander.py (81%) rename {gym/tests => tests}/envs/test_mujoco_v2_to_v3_conversion.py (96%) rename {gym/tests => tests}/envs/test_registration.py (97%) rename {gym/tests => tests}/spaces/__init__.py (100%) rename {gym/tests => tests}/spaces/test_spaces.py (100%) rename {gym/tests => tests}/spaces/test_utils.py (100%) rename {gym/tests => tests}/test_core.py (100%) rename {gym/tests => tests}/utils/__init__.py (100%) rename {gym/tests => tests}/utils/test_atexit.py (100%) rename {gym/tests => tests}/utils/test_env_checker.py (100%) rename {gym/tests => tests}/utils/test_seeding.py (100%) rename {gym/tests => tests}/vector/__init__.py (100%) rename {gym/tests => tests}/vector/test_async_vector_env.py (99%) rename {gym/tests => tests}/vector/test_numpy_utils.py (99%) rename {gym/tests => tests}/vector/test_shared_memory.py (98%) rename {gym/tests => tests}/vector/test_spaces.py (97%) rename {gym/tests => tests}/vector/test_sync_vector_env.py (97%) rename {gym/tests => tests}/vector/test_vector_env.py (97%) rename {gym/tests => tests}/vector/test_vector_env_wrapper.py (100%) rename {gym/tests => tests}/vector/utils.py (100%) rename {gym/tests => tests}/wrappers/__init__.py (100%) rename {gym/tests => tests}/wrappers/flatten_test.py (100%) rename {gym/tests => tests}/wrappers/monitoring/__init__.py (100%) rename {gym/tests => tests}/wrappers/monitoring/helpers.py (100%) rename {gym/tests => tests}/wrappers/monitoring/test_video_recorder.py (100%) rename {gym/tests => tests}/wrappers/nested_dict_test.py (100%) rename {gym/tests => tests}/wrappers/test_atari_preprocessing.py (100%) rename {gym/tests => tests}/wrappers/test_clip_action.py (100%) rename {gym/tests => tests}/wrappers/test_filter_observation.py (100%) rename {gym/tests => tests}/wrappers/test_flatten_observation.py (100%) rename {gym/tests => tests}/wrappers/test_frame_stack.py (100%) rename {gym/tests => tests}/wrappers/test_gray_scale_observation.py (100%) rename {gym/tests => tests}/wrappers/test_normalize.py (100%) rename {gym/tests => tests}/wrappers/test_pixel_observation.py (100%) rename {gym/tests => tests}/wrappers/test_record_episode_statistics.py (100%) rename {gym/tests => tests}/wrappers/test_record_video.py (100%) rename {gym/tests => tests}/wrappers/test_rescale_action.py (100%) rename {gym/tests => tests}/wrappers/test_resize_observation.py (100%) rename {gym/tests => tests}/wrappers/test_time_aware_observation.py (100%) rename {gym/tests => tests}/wrappers/test_transform_observation.py (100%) rename {gym/tests => tests}/wrappers/test_transform_reward.py (100%) diff --git a/scripts/generate_json.py b/scripts/generate_json.py index 38456afc3a7..da7272d79de 100644 --- a/scripts/generate_json.py +++ b/scripts/generate_json.py @@ -4,8 +4,8 @@ import sys import argparse -from gym.tests.envs.spec_list import should_skip_env_spec_for_tests -from gym.tests import generate_rollout_hash +from tests.envs.spec_list import should_skip_env_spec_for_tests +from tests import generate_rollout_hash DATA_DIR = os.path.join(os.path.dirname(__file__), os.pardir, "gym", "envs", "tests") ROLLOUT_STEPS = 100 diff --git a/gym/tests/__init__.py b/tests/__init__.py similarity index 100% rename from gym/tests/__init__.py rename to tests/__init__.py diff --git a/gym/tests/envs/__init__.py b/tests/envs/__init__.py similarity index 100% rename from gym/tests/envs/__init__.py rename to tests/envs/__init__.py diff --git a/gym/tests/envs/robotics/__init__.py b/tests/envs/robotics/__init__.py similarity index 100% rename from gym/tests/envs/robotics/__init__.py rename to tests/envs/robotics/__init__.py diff --git a/gym/tests/envs/robotics/hand/__init__.py b/tests/envs/robotics/hand/__init__.py similarity index 100% rename from gym/tests/envs/robotics/hand/__init__.py rename to tests/envs/robotics/hand/__init__.py diff --git a/gym/tests/envs/robotics/hand/test_manipulate.py b/tests/envs/robotics/hand/test_manipulate.py similarity index 88% rename from gym/tests/envs/robotics/hand/test_manipulate.py rename to tests/envs/robotics/hand/test_manipulate.py index 7b1934bc81f..55b393f09b0 100644 --- a/gym/tests/envs/robotics/hand/test_manipulate.py +++ b/tests/envs/robotics/hand/test_manipulate.py @@ -3,7 +3,7 @@ import pytest from gym import envs -from gym.tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE +from tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE ENVIRONMENT_IDS = ( diff --git a/gym/tests/envs/robotics/hand/test_manipulate_touch_sensors.py b/tests/envs/robotics/hand/test_manipulate_touch_sensors.py similarity index 88% rename from gym/tests/envs/robotics/hand/test_manipulate_touch_sensors.py rename to tests/envs/robotics/hand/test_manipulate_touch_sensors.py index b3384af06eb..bff261a2585 100644 --- a/gym/tests/envs/robotics/hand/test_manipulate_touch_sensors.py +++ b/tests/envs/robotics/hand/test_manipulate_touch_sensors.py @@ -3,7 +3,7 @@ import pytest from gym import envs -from gym.tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE +from tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE ENVIRONMENT_IDS = ( diff --git a/gym/tests/envs/robotics/hand/test_reach.py b/tests/envs/robotics/hand/test_reach.py similarity index 84% rename from gym/tests/envs/robotics/hand/test_reach.py rename to tests/envs/robotics/hand/test_reach.py index f698564edb8..8d360e70680 100644 --- a/gym/tests/envs/robotics/hand/test_reach.py +++ b/tests/envs/robotics/hand/test_reach.py @@ -3,7 +3,7 @@ import pytest from gym import envs -from gym.tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE +from tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE @pytest.mark.skipif(skip_mujoco, reason=SKIP_MUJOCO_WARNING_MESSAGE) diff --git a/gym/tests/envs/rollout.json b/tests/envs/rollout.json similarity index 100% rename from gym/tests/envs/rollout.json rename to tests/envs/rollout.json diff --git a/gym/tests/envs/spec_list.py b/tests/envs/spec_list.py similarity index 100% rename from gym/tests/envs/spec_list.py rename to tests/envs/spec_list.py diff --git a/gym/tests/envs/test_atari_legacy_env_specs.py b/tests/envs/test_atari_legacy_env_specs.py similarity index 100% rename from gym/tests/envs/test_atari_legacy_env_specs.py rename to tests/envs/test_atari_legacy_env_specs.py diff --git a/gym/tests/envs/test_determinism.py b/tests/envs/test_determinism.py similarity index 98% rename from gym/tests/envs/test_determinism.py rename to tests/envs/test_determinism.py index 8c024344dba..2c288189b75 100644 --- a/gym/tests/envs/test_determinism.py +++ b/tests/envs/test_determinism.py @@ -1,7 +1,7 @@ import numpy as np import pytest -from gym.tests.envs.spec_list import spec_list +from tests.envs.spec_list import spec_list @pytest.mark.parametrize("spec", spec_list) diff --git a/gym/tests/envs/test_envs.py b/tests/envs/test_envs.py similarity index 98% rename from gym/tests/envs/test_envs.py rename to tests/envs/test_envs.py index 5a98aa9c435..4b15fc25df9 100644 --- a/gym/tests/envs/test_envs.py +++ b/tests/envs/test_envs.py @@ -2,7 +2,7 @@ import numpy as np from gym import envs -from gym.tests.envs.spec_list import spec_list +from tests.envs.spec_list import spec_list from gym.spaces import Box from gym.utils.env_checker import check_env diff --git a/gym/tests/envs/test_envs_semantics.py b/tests/envs/test_envs_semantics.py similarity index 98% rename from gym/tests/envs/test_envs_semantics.py rename to tests/envs/test_envs_semantics.py index 06a1362aae1..2a7f2b9a46c 100644 --- a/gym/tests/envs/test_envs_semantics.py +++ b/tests/envs/test_envs_semantics.py @@ -10,7 +10,7 @@ import pytest from gym import spaces, logger -from gym.tests.envs.spec_list import spec_list +from tests.envs.spec_list import spec_list DATA_DIR = os.path.dirname(__file__) ROLLOUT_STEPS = 100 diff --git a/gym/tests/envs/test_frozenlake_dfs.py b/tests/envs/test_frozenlake_dfs.py similarity index 100% rename from gym/tests/envs/test_frozenlake_dfs.py rename to tests/envs/test_frozenlake_dfs.py diff --git a/gym/envs/box2d/test_lunar_lander.py b/tests/envs/test_lunar_lander.py similarity index 81% rename from gym/envs/box2d/test_lunar_lander.py rename to tests/envs/test_lunar_lander.py index a6a57137050..b8855995ee6 100644 --- a/gym/envs/box2d/test_lunar_lander.py +++ b/tests/envs/test_lunar_lander.py @@ -2,7 +2,11 @@ try: import Box2D - from .lunar_lander import LunarLander, LunarLanderContinuous, demo_heuristic_lander + from gym.envs.box2d.lunar_lander import ( + LunarLander, + LunarLanderContinuous, + demo_heuristic_lander, + ) except ImportError: Box2D = None diff --git a/gym/tests/envs/test_mujoco_v2_to_v3_conversion.py b/tests/envs/test_mujoco_v2_to_v3_conversion.py similarity index 96% rename from gym/tests/envs/test_mujoco_v2_to_v3_conversion.py rename to tests/envs/test_mujoco_v2_to_v3_conversion.py index e57def68df7..22eaf43cef6 100644 --- a/gym/tests/envs/test_mujoco_v2_to_v3_conversion.py +++ b/tests/envs/test_mujoco_v2_to_v3_conversion.py @@ -1,7 +1,7 @@ import unittest import numpy as np from gym import envs -from gym.tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE +from tests.envs.spec_list import skip_mujoco, SKIP_MUJOCO_WARNING_MESSAGE def verify_environments_match( diff --git a/gym/tests/envs/test_registration.py b/tests/envs/test_registration.py similarity index 97% rename from gym/tests/envs/test_registration.py rename to tests/envs/test_registration.py index 695c5002519..098a9644279 100644 --- a/gym/tests/envs/test_registration.py +++ b/tests/envs/test_registration.py @@ -14,7 +14,7 @@ def __init__(self, arg1, arg2, arg3): gym.register( id="test.ArgumentEnv-v0", - entry_point="gym.tests.envs.test_registration:ArgumentEnv", + entry_point="tests.envs.test_registration:ArgumentEnv", kwargs={ "arg1": "arg1", "arg2": "arg2", diff --git a/gym/tests/spaces/__init__.py b/tests/spaces/__init__.py similarity index 100% rename from gym/tests/spaces/__init__.py rename to tests/spaces/__init__.py diff --git a/gym/tests/spaces/test_spaces.py b/tests/spaces/test_spaces.py similarity index 100% rename from gym/tests/spaces/test_spaces.py rename to tests/spaces/test_spaces.py diff --git a/gym/tests/spaces/test_utils.py b/tests/spaces/test_utils.py similarity index 100% rename from gym/tests/spaces/test_utils.py rename to tests/spaces/test_utils.py diff --git a/gym/tests/test_core.py b/tests/test_core.py similarity index 100% rename from gym/tests/test_core.py rename to tests/test_core.py diff --git a/gym/tests/utils/__init__.py b/tests/utils/__init__.py similarity index 100% rename from gym/tests/utils/__init__.py rename to tests/utils/__init__.py diff --git a/gym/tests/utils/test_atexit.py b/tests/utils/test_atexit.py similarity index 100% rename from gym/tests/utils/test_atexit.py rename to tests/utils/test_atexit.py diff --git a/gym/tests/utils/test_env_checker.py b/tests/utils/test_env_checker.py similarity index 100% rename from gym/tests/utils/test_env_checker.py rename to tests/utils/test_env_checker.py diff --git a/gym/tests/utils/test_seeding.py b/tests/utils/test_seeding.py similarity index 100% rename from gym/tests/utils/test_seeding.py rename to tests/utils/test_seeding.py diff --git a/gym/tests/vector/__init__.py b/tests/vector/__init__.py similarity index 100% rename from gym/tests/vector/__init__.py rename to tests/vector/__init__.py diff --git a/gym/tests/vector/test_async_vector_env.py b/tests/vector/test_async_vector_env.py similarity index 99% rename from gym/tests/vector/test_async_vector_env.py rename to tests/vector/test_async_vector_env.py index b400aecf645..7d3b98c0056 100644 --- a/gym/tests/vector/test_async_vector_env.py +++ b/tests/vector/test_async_vector_env.py @@ -4,7 +4,7 @@ from multiprocessing import TimeoutError from gym.spaces import Box, Tuple from gym.error import AlreadyPendingCallError, NoAsyncCallError, ClosedEnvironmentError -from gym.tests.vector.utils import ( +from tests.vector.utils import ( CustomSpace, make_env, make_slow_env, diff --git a/gym/tests/vector/test_numpy_utils.py b/tests/vector/test_numpy_utils.py similarity index 99% rename from gym/tests/vector/test_numpy_utils.py rename to tests/vector/test_numpy_utils.py index c7b0ad75510..e21625bc28a 100644 --- a/gym/tests/vector/test_numpy_utils.py +++ b/tests/vector/test_numpy_utils.py @@ -5,7 +5,7 @@ from gym.spaces import Tuple, Dict from gym.vector.utils.spaces import _BaseGymSpaces -from gym.tests.vector.utils import spaces +from tests.vector.utils import spaces from gym.vector.utils.numpy_utils import concatenate, create_empty_array diff --git a/gym/tests/vector/test_shared_memory.py b/tests/vector/test_shared_memory.py similarity index 98% rename from gym/tests/vector/test_shared_memory.py rename to tests/vector/test_shared_memory.py index 3310773a6ec..bee2d7df42e 100644 --- a/gym/tests/vector/test_shared_memory.py +++ b/tests/vector/test_shared_memory.py @@ -9,7 +9,7 @@ from gym.spaces import Tuple, Dict from gym.error import CustomSpaceError from gym.vector.utils.spaces import _BaseGymSpaces -from gym.tests.vector.utils import spaces, custom_spaces +from tests.vector.utils import spaces, custom_spaces from gym.vector.utils.shared_memory import ( create_shared_memory, diff --git a/gym/tests/vector/test_spaces.py b/tests/vector/test_spaces.py similarity index 97% rename from gym/tests/vector/test_spaces.py rename to tests/vector/test_spaces.py index 10b8b1013ce..9a53cc88b73 100644 --- a/gym/tests/vector/test_spaces.py +++ b/tests/vector/test_spaces.py @@ -2,7 +2,7 @@ import numpy as np from gym.spaces import Box, MultiDiscrete, Tuple, Dict -from gym.tests.vector.utils import spaces, custom_spaces, CustomSpace +from tests.vector.utils import spaces, custom_spaces, CustomSpace from gym.vector.utils.spaces import batch_space diff --git a/gym/tests/vector/test_sync_vector_env.py b/tests/vector/test_sync_vector_env.py similarity index 97% rename from gym/tests/vector/test_sync_vector_env.py rename to tests/vector/test_sync_vector_env.py index 4a28c13c655..ede9d0d648d 100644 --- a/gym/tests/vector/test_sync_vector_env.py +++ b/tests/vector/test_sync_vector_env.py @@ -2,7 +2,7 @@ import numpy as np from gym.spaces import Box, Tuple -from gym.tests.vector.utils import CustomSpace, make_env, make_custom_space_env +from tests.vector.utils import CustomSpace, make_env, make_custom_space_env from gym.vector.sync_vector_env import SyncVectorEnv diff --git a/gym/tests/vector/test_vector_env.py b/tests/vector/test_vector_env.py similarity index 97% rename from gym/tests/vector/test_vector_env.py rename to tests/vector/test_vector_env.py index b0e5e43331b..6bd404b431d 100644 --- a/gym/tests/vector/test_vector_env.py +++ b/tests/vector/test_vector_env.py @@ -2,7 +2,7 @@ import numpy as np from gym.spaces import Tuple -from gym.tests.vector.utils import CustomSpace, make_env +from tests.vector.utils import CustomSpace, make_env from gym.vector.async_vector_env import AsyncVectorEnv from gym.vector.sync_vector_env import SyncVectorEnv diff --git a/gym/tests/vector/test_vector_env_wrapper.py b/tests/vector/test_vector_env_wrapper.py similarity index 100% rename from gym/tests/vector/test_vector_env_wrapper.py rename to tests/vector/test_vector_env_wrapper.py diff --git a/gym/tests/vector/utils.py b/tests/vector/utils.py similarity index 100% rename from gym/tests/vector/utils.py rename to tests/vector/utils.py diff --git a/gym/tests/wrappers/__init__.py b/tests/wrappers/__init__.py similarity index 100% rename from gym/tests/wrappers/__init__.py rename to tests/wrappers/__init__.py diff --git a/gym/tests/wrappers/flatten_test.py b/tests/wrappers/flatten_test.py similarity index 100% rename from gym/tests/wrappers/flatten_test.py rename to tests/wrappers/flatten_test.py diff --git a/gym/tests/wrappers/monitoring/__init__.py b/tests/wrappers/monitoring/__init__.py similarity index 100% rename from gym/tests/wrappers/monitoring/__init__.py rename to tests/wrappers/monitoring/__init__.py diff --git a/gym/tests/wrappers/monitoring/helpers.py b/tests/wrappers/monitoring/helpers.py similarity index 100% rename from gym/tests/wrappers/monitoring/helpers.py rename to tests/wrappers/monitoring/helpers.py diff --git a/gym/tests/wrappers/monitoring/test_video_recorder.py b/tests/wrappers/monitoring/test_video_recorder.py similarity index 100% rename from gym/tests/wrappers/monitoring/test_video_recorder.py rename to tests/wrappers/monitoring/test_video_recorder.py diff --git a/gym/tests/wrappers/nested_dict_test.py b/tests/wrappers/nested_dict_test.py similarity index 100% rename from gym/tests/wrappers/nested_dict_test.py rename to tests/wrappers/nested_dict_test.py diff --git a/gym/tests/wrappers/test_atari_preprocessing.py b/tests/wrappers/test_atari_preprocessing.py similarity index 100% rename from gym/tests/wrappers/test_atari_preprocessing.py rename to tests/wrappers/test_atari_preprocessing.py diff --git a/gym/tests/wrappers/test_clip_action.py b/tests/wrappers/test_clip_action.py similarity index 100% rename from gym/tests/wrappers/test_clip_action.py rename to tests/wrappers/test_clip_action.py diff --git a/gym/tests/wrappers/test_filter_observation.py b/tests/wrappers/test_filter_observation.py similarity index 100% rename from gym/tests/wrappers/test_filter_observation.py rename to tests/wrappers/test_filter_observation.py diff --git a/gym/tests/wrappers/test_flatten_observation.py b/tests/wrappers/test_flatten_observation.py similarity index 100% rename from gym/tests/wrappers/test_flatten_observation.py rename to tests/wrappers/test_flatten_observation.py diff --git a/gym/tests/wrappers/test_frame_stack.py b/tests/wrappers/test_frame_stack.py similarity index 100% rename from gym/tests/wrappers/test_frame_stack.py rename to tests/wrappers/test_frame_stack.py diff --git a/gym/tests/wrappers/test_gray_scale_observation.py b/tests/wrappers/test_gray_scale_observation.py similarity index 100% rename from gym/tests/wrappers/test_gray_scale_observation.py rename to tests/wrappers/test_gray_scale_observation.py diff --git a/gym/tests/wrappers/test_normalize.py b/tests/wrappers/test_normalize.py similarity index 100% rename from gym/tests/wrappers/test_normalize.py rename to tests/wrappers/test_normalize.py diff --git a/gym/tests/wrappers/test_pixel_observation.py b/tests/wrappers/test_pixel_observation.py similarity index 100% rename from gym/tests/wrappers/test_pixel_observation.py rename to tests/wrappers/test_pixel_observation.py diff --git a/gym/tests/wrappers/test_record_episode_statistics.py b/tests/wrappers/test_record_episode_statistics.py similarity index 100% rename from gym/tests/wrappers/test_record_episode_statistics.py rename to tests/wrappers/test_record_episode_statistics.py diff --git a/gym/tests/wrappers/test_record_video.py b/tests/wrappers/test_record_video.py similarity index 100% rename from gym/tests/wrappers/test_record_video.py rename to tests/wrappers/test_record_video.py diff --git a/gym/tests/wrappers/test_rescale_action.py b/tests/wrappers/test_rescale_action.py similarity index 100% rename from gym/tests/wrappers/test_rescale_action.py rename to tests/wrappers/test_rescale_action.py diff --git a/gym/tests/wrappers/test_resize_observation.py b/tests/wrappers/test_resize_observation.py similarity index 100% rename from gym/tests/wrappers/test_resize_observation.py rename to tests/wrappers/test_resize_observation.py diff --git a/gym/tests/wrappers/test_time_aware_observation.py b/tests/wrappers/test_time_aware_observation.py similarity index 100% rename from gym/tests/wrappers/test_time_aware_observation.py rename to tests/wrappers/test_time_aware_observation.py diff --git a/gym/tests/wrappers/test_transform_observation.py b/tests/wrappers/test_transform_observation.py similarity index 100% rename from gym/tests/wrappers/test_transform_observation.py rename to tests/wrappers/test_transform_observation.py diff --git a/gym/tests/wrappers/test_transform_reward.py b/tests/wrappers/test_transform_reward.py similarity index 100% rename from gym/tests/wrappers/test_transform_reward.py rename to tests/wrappers/test_transform_reward.py