skip tests that depend on hydra.compose in 3.11

This commit is contained in:
Saugat Pachhai (सौगात)
2022-08-31 17:24:09 +02:00
committed by David de la Iglesia Castro
parent 91f12395f1
commit 639eeed43b
2 changed files with 17 additions and 1 deletions
+14 -1
View File
@@ -1,3 +1,5 @@
import sys
import pytest
from ..utils.test_hydra import hydra_setup
@@ -17,7 +19,18 @@ def test_modify_params(params_repo, dvc, changes, expected):
assert fobj.read().strip() == expected
@pytest.mark.parametrize("hydra_enabled", [True, False])
@pytest.mark.parametrize(
"hydra_enabled",
[
pytest.param(
True,
marks=pytest.mark.skipif(
sys.version_info >= (3, 11), reason="unsupported on 3.11"
),
),
False,
],
)
@pytest.mark.parametrize(
"config_dir,config_name",
[
+3
View File
@@ -1,3 +1,5 @@
import sys
import pytest
from dvc.exceptions import InvalidArgumentError
@@ -138,6 +140,7 @@ def hydra_setup(tmp_dir, config_dir, config_name):
return str(config_dir)
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="unsupported on 3.11")
@pytest.mark.parametrize("suffix", ["yaml", "toml", "json"])
@pytest.mark.parametrize(
"overrides,expected",