Skip to content

Commit ee8752f

Browse files
BUG: Renamed test variables pandas-dev#47856
1 parent bab1995 commit ee8752f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pandas/tests/tseries/offsets/test_offsets.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1047,12 +1047,12 @@ def test_construct_int_arg_no_kwargs_assumed_days(n):
10471047
)
10481048
def test_dateoffset_add_sub_timestamp_series_with_nano(offset, expected):
10491049
# GH 47856
1050-
t = Timestamp("2022-01-01")
1051-
teststamp = t
1052-
s = Series([t])
1053-
s = s + offset
1054-
assert s[0] == expected
1055-
s -= offset
1056-
assert s[0] == teststamp
1057-
s = offset + s
1058-
assert s[0] == expected
1050+
start_time = Timestamp("2022-01-01")
1051+
teststamp = start_time
1052+
testseries = Series([start_time])
1053+
testseries = testseries + offset
1054+
assert testseries[0] == expected
1055+
testseries -= offset
1056+
assert testseries[0] == teststamp
1057+
testseries = offset + testseries
1058+
assert testseries[0] == expected

0 commit comments

Comments
 (0)