summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-06-10 09:51:43 +0300
committerrobot-piglet <[email protected]>2025-06-10 10:05:21 +0300
commit8de50b45d785686d03767775ecaaa5ccd10efc42 (patch)
tree5c57f416b3b9e5aad7dfdc4ef5cfa10eb5223129 /contrib/python
parente196c1b26ed8c000deecdebc8c5811384ca613e8 (diff)
Intermediate changes
commit_hash:d5f89bd17ad9987bcb95e4e86366ec5b9912d8ea
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/pytest-lazy-fixtures/.dist-info/METADATA2
-rw-r--r--contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py12
-rw-r--r--contrib/python/pytest-lazy-fixtures/ya.make2
3 files changed, 12 insertions, 4 deletions
diff --git a/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA b/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
index 09a569a800c..8bb4f657de4 100644
--- a/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
+++ b/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-lazy-fixtures
-Version: 1.1.3
+Version: 1.1.4
Summary: Allows you to use fixtures in @pytest.mark.parametrize.
Home-page: https://github.com/dev-petrov/pytest-lazy-fixtures
License: MIT
diff --git a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py
index 45a1243d52b..f557e4da9ca 100644
--- a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py
+++ b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py
@@ -1,5 +1,5 @@
import copy
-from typing import Any, Dict, List, Tuple
+from typing import Any, Dict, Iterable, Iterator, List, Tuple
import pytest
@@ -60,6 +60,14 @@ def _copy_metafunc(metafunc):
return copied
+def _uniq(values: "Iterable[str]") -> "Iterator[str]":
+ seen = set()
+ for value in values:
+ if value not in seen:
+ seen.add(value)
+ yield value
+
+
def _normalize_call(callspec, metafunc, used_keys):
fm = metafunc.config.pluginmanager.get_plugin("funcmanage")
@@ -72,7 +80,7 @@ def _normalize_call(callspec, metafunc, used_keys):
fixturenames_closure, arg2fixturedefs = _get_fixturenames_closure_and_arg2fixturedefs(fm, metafunc, value)
if fixturenames_closure and arg2fixturedefs:
- extra_fixturenames = [fname for fname in set(fixturenames_closure) if fname not in params]
+ extra_fixturenames = [fname for fname in _uniq(fixturenames_closure) if fname not in params]
newmetafunc = _copy_metafunc(metafunc)
newmetafunc.fixturenames = extra_fixturenames
diff --git a/contrib/python/pytest-lazy-fixtures/ya.make b/contrib/python/pytest-lazy-fixtures/ya.make
index 1ccca305eb0..2fa4dab7cd0 100644
--- a/contrib/python/pytest-lazy-fixtures/ya.make
+++ b/contrib/python/pytest-lazy-fixtures/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(1.1.3)
+VERSION(1.1.4)
LICENSE(MIT)