Skip to content

Commit 0f0f477

Browse files
author
Victor
committed
Fixed long line.
1 parent 11bd744 commit 0f0f477

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/scalar/timedelta/test_construction.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):
228228
0.001, 1, 10])
229229
def test_string_with_unit(num, sign, unit, redundant_unit, expectation):
230230
with expectation:
231-
assert Timedelta(str(sign * num) + redundant_unit, unit=unit)\
232-
== Timedelta(sign * num, unit=unit)
231+
val = sign * num
232+
val_str = str(val) + redundant_unit
233+
assert Timedelta(val_str, unit=unit) == Timedelta(val, unit=unit)

0 commit comments

Comments
 (0)