From 04554924518a4a10d85a9e4a0894e1de405d7f52 Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:37:04 -0800 Subject: [PATCH] Pin to PyTest 8.0.0 (#5163) Fix failures in nv-accelerate-v100 unit tests. Fix running on this PR: https://github.com/microsoft/DeepSpeed/actions/runs/7923894998/job/21634533848 Original failure [here](https://github.com/microsoft/DeepSpeed/actions/runs/7961285826/job/21748664124?pr=5129#step:7:415): ``` from _pytest.doctest import ( E ImportError: cannot import name 'import_path' from '_pytest.doctest' (/tmp/actions-runner/_work/DeepSpeed/DeepSpeed/unit-test-venv/lib/python3.8/site-packages/_pytest/doctest.py) ``` --- requirements/requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-dev.txt b/requirements/requirements-dev.txt index 7ae81d14aa18..f28c1ecb165c 100644 --- a/requirements/requirements-dev.txt +++ b/requirements/requirements-dev.txt @@ -6,7 +6,7 @@ future importlib-metadata>=4 mup pre-commit>=2.20.0 -pytest +pytest<=8.0.0 pytest-forked pytest-randomly pytest-xdist