diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2022-03-30 19:04:00 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-03-30 19:04:00 -0700 |
commit | 2e656abe1f5a5b83f8d23561892c22b485e8a621 (patch) | |
tree | 64a80eac786add3c183ba443799502fb75d6d8c1 /app-admin/salt/files | |
parent | dev-python/raet: Fix brokenness with a revision bump (diff) | |
download | gentoo-2e656abe1f5a5b83f8d23561892c22b485e8a621.tar.gz gentoo-2e656abe1f5a5b83f8d23561892c22b485e8a621.tar.bz2 gentoo-2e656abe1f5a5b83f8d23561892c22b485e8a621.zip |
app-admin/salt: add 3003.4
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-admin/salt/files')
-rw-r--r-- | app-admin/salt/files/salt-3003.4-tests.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/salt/files/salt-3003.4-tests.patch b/app-admin/salt/files/salt-3003.4-tests.patch new file mode 100644 index 000000000000..93fd4214021b --- /dev/null +++ b/app-admin/salt/files/salt-3003.4-tests.patch @@ -0,0 +1,52 @@ +diff --git a/tests/conftest.py b/tests/conftest.py +index 0fc1844bc8..32346da1f6 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -34,7 +34,6 @@ import salt.utils.files + import salt.utils.path + import salt.utils.platform + import salt.utils.win_functions +-import saltfactories.utils.compat + from salt.serializers import yaml + from salt.utils.immutabletypes import freeze + from tests.support.helpers import ( +@@ -465,9 +464,7 @@ def pytest_runtest_setup(item): + item._skipped_by_mark = True + pytest.skip(PRE_PYTEST_SKIP_REASON) + +- if saltfactories.utils.compat.has_unittest_attr( +- item, "__slow_test__" +- ) or item.get_closest_marker("slow_test"): ++ if item.get_closest_marker("slow_test"): + if item.config.getoption("--run-slow") is False: + item._skipped_by_mark = True + pytest.skip("Slow tests are disabled!") +diff --git a/tests/unit/utils/test_schema.py b/tests/unit/utils/test_schema.py +index ef7acdb7a3..22953556cb 100644 +--- a/tests/unit/utils/test_schema.py ++++ b/tests/unit/utils/test_schema.py +@@ -1,6 +1,8 @@ + # pylint: disable=function-redefined + import copy + ++import pytest ++ + import salt.utils.json + import salt.utils.schema as schema + import salt.utils.stringutils +@@ -822,6 +824,7 @@ class ConfigTestCase(TestCase): + }, + ) + ++ @pytest.mark.skip("broken with newer versions of jsonschema") + @skipIf(HAS_JSONSCHEMA is False, "The 'jsonschema' library is missing") + def test_hostname_config_validation(self): + class TestConf(schema.Schema): +@@ -2048,6 +2051,7 @@ class ConfigTestCase(TestCase): + item = schema.NotItem(item=schema.BooleanItem()) + self.assertEqual(item.serialize(), {"not": item.item.serialize()}) + ++ @pytest.mark.skip("broken with newer versions of jsonschema") + @skipIf(HAS_JSONSCHEMA is False, "The 'jsonschema' library is missing") + def test_not_config_validation(self): + class TestConf(schema.Schema): |