Skip to content

Commit e787447

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/series/methods/test_slice.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gc
2-
import pandas as pd
2+
33
from pandas import Series
44

55

@@ -14,14 +14,14 @@ def count_dummy_instances():
1414

1515

1616
def test_slicing_releases_dummy_instances():
17-
"""Ensure slicing a Series does not retain references to original Dummy instances."""
17+
"""Ensure Series slicing does not retain references to original Dummy data."""
1818
NDATA = 100_000
1919
baseline = count_dummy_instances()
2020
a = Series([Dummy(i) for i in range(NDATA)])
2121
a = a[-1:]
2222
gc.collect()
2323
after = count_dummy_instances()
2424
retained = after - baseline
25-
assert (
26-
retained <= 1
27-
), f"{retained} Dummy instances were retained; expected at most 1"
25+
assert retained <= 1, (
26+
f"{retained} Dummy instances were retained; expected at most 1"
27+
)

0 commit comments

Comments
 (0)