Skip to content

Commit

Permalink
Add pytest-subtests to the dependencies
Browse files Browse the repository at this point in the history
As discussed in [1], pytest-subtests changes behavior of .skipTest() having
effect to really skip individual subtests or skip the entire test if module
is not installed. Huggingface Accelerate has module in its dependencies. It
makes sense to add it for Transformers as well to avoid divergent environment
between users and ci.

See[1]: huggingface#34723 (comment)
Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh committed Nov 15, 2024
1 parent a3d69a8 commit f68c9d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"pyyaml>=5.1",
"pydantic",
"pytest>=7.2.0,<8.0.0",
"pytest-subtests",
"pytest-timeout",
"pytest-xdist",
"python>=3.9.0",
Expand Down Expand Up @@ -320,6 +321,7 @@ def run(self):
deps_list(
"pytest",
"pytest-rich",
"pytest-subtests",
"pytest-xdist",
"timeout-decorator",
"parameterized",
Expand Down

0 comments on commit f68c9d1

Please sign in to comment.