From c82ea08641487732926fc9a5178181e67714fc2b Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Mon, 23 Jul 2018 13:43:27 +0800 Subject: [PATCH] revert style change --- pandas/tests/frame/test_arithmetic.py | 2 ++ pandas/tests/internals/test_internals.py | 18 ++++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index eff5357b0722de..9a41360f4b7bd1 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -213,6 +213,7 @@ def test_df_sub_datetime64_not_ns(self): tm.assert_frame_equal(res, expected) def test_timestamp_df_add_dateoffset(self): + # GH 21610 expected = pd.DataFrame([pd.Timestamp('2019')]) result = pd.DataFrame([pd.Timestamp('2018')]) + pd.DateOffset(years=1) tm.assert_frame_equal(expected, result) @@ -229,6 +230,7 @@ def test_timestamp_df_add_dateoffset(self): datetime.date(2017, 1, 1), ]) def test_timestamp_df_sub_timestamp(self, other): + # GH 8554 12437 expected = pd.DataFrame([pd.Timedelta('365d')]) result = pd.DataFrame([pd.Timestamp('2018')]) - other tm.assert_frame_equal(expected, result) diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 1645f9069fa267..f85978e2e3a588 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -1248,16 +1248,14 @@ class TestCanHoldElement(object): operator.pow, ], ids=lambda x: x.__name__) def test_binop_other(self, op, value, dtype): - skip = { - (operator.add, 'bool'), - (operator.sub, 'bool'), - (operator.mul, 'bool'), - (operator.truediv, 'bool'), - (operator.mod, 'i8'), - (operator.mod, 'complex128'), - (operator.mod, '