Skip to content

Commit 359b6ef

Browse files
committed
add back ops
1 parent bb973d7 commit 359b6ef

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

pandas/tests/extension/base/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class TestMyDtype(BaseDtypeTests):
4646
from .getitem import BaseGetitemTests # noqa
4747
from .groupby import BaseGroupbyTests # noqa
4848
from .interface import BaseInterfaceTests # noqa
49+
from .ops import BaseOpsTests # noqa
4950
from .methods import BaseMethodsTests # noqa
5051
from .missing import BaseMissingTests # noqa
5152
from .reshaping import BaseReshapingTests # noqa

pandas/tests/extension/category/test_categorical.py

-3
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ def test_array_type_with_arg(self, data, dtype):
5757
assert dtype.construct_array_type('foo') is Categorical
5858

5959

60-
<<<<<<< HEAD
61-
=======
6260
class TestOps(base.BaseOpsTests):
6361

6462
def test_compare_scalar(self, data, all_compare_operators):
@@ -75,7 +73,6 @@ def test_compare_scalar(self, data, all_compare_operators):
7573
getattr(data, op)(0)
7674

7775

78-
>>>>>>> ENH: add ops to extension array
7976
class TestInterface(base.BaseInterfaceTests):
8077
@pytest.mark.skip(reason="Memory usage doesn't match")
8178
def test_memory_usage(self):

pandas/tests/extension/decimal/test_decimal.py

-3
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ class TestInterface(BaseDecimal, base.BaseInterfaceTests):
101101
pass
102102

103103

104-
<<<<<<< HEAD
105-
=======
106104
class TestOps(BaseDecimal, base.BaseOpsTests):
107105

108106
def compare(self, s, op, other):
@@ -138,7 +136,6 @@ def test_compare_scalar(self, data, all_compare_operators):
138136
tm.assert_series_equal(result, expected)
139137

140138

141-
>>>>>>> ENH: add ops to extension array
142139
class TestConstructors(BaseDecimal, base.BaseConstructorsTests):
143140

144141
@pytest.mark.xfail(reason="not implemented constructor from dtype")

pandas/tests/extension/json/test_json.py

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ class TestReshaping(BaseJSON, base.BaseReshapingTests):
143143
pass
144144

145145

146+
class TestOps(BaseJSON, base.BaseOpsTests):
147+
pass
148+
149+
146150
class TestGetitem(BaseJSON, base.BaseGetitemTests):
147151
pass
148152

0 commit comments

Comments
 (0)