Pin pytest to 7.0.1 (#2898)

This commit is contained in:
Mark Towers
2022-06-19 21:49:28 +01:00
committed by GitHub
parent a7e1861f5c
commit dc39a4ef8e
4 changed files with 4 additions and 5 deletions

View File

@@ -231,7 +231,7 @@ class Env(Generic[ObsType, ActType]):
there aren't accidental correlations between multiple generators.
Args:
seed(Optional int): The seed value for the random number geneartor
seed(Optional int): The seed value for the random number generator
Returns:
seeds (List[int]): Returns the list of seeds used in this environment's random

View File

@@ -14,6 +14,6 @@ ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin
COPY . /usr/local/gym/
WORKDIR /usr/local/gym/
RUN if [ python:$PYTHON_VERSION = "python:3.6.15" ] ; then pip install .[box2d,classic_control,toy_text,other] pytest mock ; else pip install .[testing] ; fi
RUN if [ python:$PYTHON_VERSION = "python:3.6.15" ] ; then pip install .[box2d,classic_control,toy_text,other] pytest==7.0.1 ; else pip install .[testing] ; fi
ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]

View File

@@ -27,7 +27,7 @@ extras = {
testing_group = set(extras.keys()) - {"accept-rom-license", "atari"}
extras["testing"] = list(
set(itertools.chain.from_iterable(map(lambda group: extras[group], testing_group)))
) + ["pytest", "mock"]
) + ["pytest==7.0.1"]
# All dependency groups - accept rom license as requires user to run
all_groups = set(extras.keys()) - {"accept-rom-license"}

View File

@@ -6,5 +6,4 @@ matplotlib>=3.0
imageio>=2.14.1
pygame==2.1.0
mujoco_py<2.2,>=2.1
pytest
mock
pytest==7.0.1