Skip to content

Commit

Permalink
skip tests in py38
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jun 28, 2024
1 parent bd27ad1 commit 40ad145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test = [
"pytest-sugar",
"pytest-split",
"dpgui",
"array-api-strict>=2",
"array-api-strict>=2;python_version>=3.9",
]
docs = [
"sphinx>=3.1.1",
Expand Down
6 changes: 5 additions & 1 deletion source/tests/common/dpmodel/array_api/test_env_mat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
import sys
import unittest

import array_api_strict as xp
if sys.version_info >= (3, 9):
import array_api_strict as xp
else:
raise unittest.SkipTest("array_api_strict doesn't support Python<=3.8")

from deepmd.dpmodel.utils.env_mat import (
compute_smooth_weight,
Expand Down

0 comments on commit 40ad145

Please sign in to comment.