Skip to content

Commit 26f3b8a

Browse files
committed
CLN: Remove parametrize_fixture_doc
1 parent 8fba225 commit 26f3b8a

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

pandas/util/_test_decorators.py

-25
Original file line numberDiff line numberDiff line change
@@ -157,28 +157,3 @@ def decorated_func(func):
157157
"installed->{installed}".format(
158158
enabled=_USE_NUMEXPR,
159159
installed=_NUMEXPR_INSTALLED))
160-
161-
162-
def parametrize_fixture_doc(*args):
163-
"""
164-
Intended for use as a decorator for parametrized fixture,
165-
this function will wrap the decorated function with a pytest
166-
``parametrize_fixture_doc`` mark. That mark will format
167-
initial fixture docstring by replacing placeholders {0}, {1} etc
168-
with parameters passed as arguments.
169-
170-
Parameters:
171-
----------
172-
args: iterable
173-
Positional arguments for docstring.
174-
175-
Returns:
176-
-------
177-
documented_fixture: function
178-
The decorated function wrapped within a pytest
179-
``parametrize_fixture_doc`` mark
180-
"""
181-
def documented_fixture(fixture):
182-
fixture.__doc__ = fixture.__doc__.format(*args)
183-
return fixture
184-
return documented_fixture

0 commit comments

Comments
 (0)