Skip to content

Commit eae8ff6

Browse files
committed
Apply formatting fixes to comply with Ruff and isort
1 parent cd96abf commit eae8ff6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/tests/series/methods/test_slice.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import gc
2+
23
import pandas as pd
34
from pandas import Series
45

@@ -14,14 +15,14 @@ def count_dummy_instances():
1415

1516

1617
def test_slicing_releases_dummy_instances():
17-
"""Ensure slicing a Series does not retain references to original Dummy instances."""
18+
"""Ensure Series slicing does not retain references to original Dummy data."""
1819
NDATA = 100_000
1920
baseline = count_dummy_instances()
2021
a = Series([Dummy(i) for i in range(NDATA)])
2122
a = a[-1:]
2223
gc.collect()
2324
after = count_dummy_instances()
2425
retained = after - baseline
25-
assert (
26-
retained <= 1
27-
), f"{retained} Dummy instances were retained; expected at most 1"
26+
assert retained <= 1, (
27+
f"{retained} Dummy instances were retained; expected at most 1"
28+
)

0 commit comments

Comments
 (0)