Skip to content

Commit b470a94

Browse files
committed
TST: Ensure IDs are unique
1 parent 1cd9905 commit b470a94

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/tests/univariate/test_mean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def forecastable_model(request) -> tuple[ARCHModelResult, ARCHModelFixedResult]:
152152
FIT_FIXED_PARAMS.append(pytest.param((model, vol), marks=marks))
153153

154154
FIT_FIXED_IDS = [
155-
f"{param[0][0].__class__.__name__}-{param[0][1]}{' (SLOW)' if len(mark) else ''}"
155+
f"{param[0][0].name}-{param[0][1]}{' (SLOW)' if len(mark) else ''}"
156156
for param, mark, _ in FIT_FIXED_PARAMS
157157
]
158158

arch/univariate/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _fit_parameterless_model(
380380
"""
381381
y = self._fit_y
382382
# Fake convergence results, see GH #87
383-
opt = cast(Any, OptimizeResult())
383+
opt = cast("Any", OptimizeResult())
384384
opt.status = 0
385385
opt.message = ""
386386

arch/univariate/mean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def _fit_no_arch_normal_errors(
776776
y = self._fit_y
777777

778778
# Fake convergence results, see GH #87
779-
opt = cast(Any, OptimizeResult())
779+
opt = cast("Any", OptimizeResult())
780780
opt.status = 0
781781
opt.message = ""
782782

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ ignore = [
299299
"arch/unitroot/_phillips_ouliaris.py" = ["RUF002"]
300300
"arch/unitroot/_engle_granger.py" = ["RUF001"]
301301

302-
303302
[tool.pytest.ini_options]
303+
strict_parametrization_ids = true
304304
minversion = "8.4.1"
305305
testpaths = "arch"
306306
xfail_strict = true

0 commit comments

Comments
 (0)