Skip to content

Commit 29fc9c1

Browse files
committed
Fix ruff format and rename single-letter variable in test
1 parent 57c266c commit 29fc9c1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/time_feature/test_seasonality.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ def test_get_seasonality_for_frequency():
7373

7474
def test_get_seasonality_deprecation_warning():
7575
"""The old get_seasonality should emit a DeprecationWarning."""
76-
with warnings.catch_warnings(record=True) as w:
76+
with warnings.catch_warnings(record=True) as caught:
7777
warnings.simplefilter("always")
7878
get_seasonality("H")
7979
deprecation_warnings = [
80-
ww for ww in w
81-
if issubclass(ww.category, DeprecationWarning)
82-
and "get_seasonality_for_frequency" in str(ww.message)
80+
warning
81+
for warning in caught
82+
if issubclass(warning.category, DeprecationWarning)
83+
and "get_seasonality_for_frequency" in str(warning.message)
8384
]
8485
assert len(deprecation_warnings) == 1

0 commit comments

Comments
 (0)