Skip to content

Commit 5208c48

Browse files
author
Victor
committed
Fixed PEP linting.
1 parent 2848ad6 commit 5208c48

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

pandas/tests/scalar/timedelta/test_construction.py

+6-9
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,14 @@ def __exit__(self, exc_type, exc_val, exc_tb):
223223
@pytest.mark.parametrize("redundant_unit, expectation", [
224224
("", not_raises()),
225225
("d", pytest.raises(ValueError)),
226-
("us", pytest.raises(ValueError)),
227-
])
226+
("us", pytest.raises(ValueError))])
228227
@pytest.mark.parametrize("unit", [
229-
"d", "m", "s", "us"
230-
])
228+
"d", "m", "s", "us"])
231229
@pytest.mark.parametrize("sign", [
232-
+1, -1
233-
])
230+
+1, -1])
234231
@pytest.mark.parametrize("num", [
235-
0.001, 1, 10
236-
])
232+
0.001, 1, 10])
237233
def test_string_with_unit(num, sign, unit, redundant_unit, expectation):
238234
with expectation:
239-
assert Timedelta(str(sign*num)+redundant_unit, unit=unit) == Timedelta(sign*num, unit=unit)
235+
assert Timedelta(str(sign * num) + redundant_unit, unit=unit) \
236+
== Timedelta(sign * num, unit=unit)

0 commit comments

Comments
 (0)