Skip to content

Commit 4c36407

Browse files
committed
internals: remove invalid test
'<M8[ns]' - '<M8[ns]' = '<m8[ns]' , other binop are invalid.
1 parent 0dac2ee commit 4c36407

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/tests/internals/test_internals.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,6 @@ class TestCanHoldElement(object):
12381238
(2**63, 'complex128'),
12391239
(True, 'bool'),
12401240
(np.timedelta64(20, 'ns'), '<m8[ns]'),
1241-
(np.datetime64(20, 'ns'), '<M8[ns]'),
12421241
])
12431242
@pytest.mark.parametrize('op', [
12441243
operator.add,
@@ -1249,15 +1248,16 @@ class TestCanHoldElement(object):
12491248
operator.pow,
12501249
], ids=lambda x: x.__name__)
12511250
def test_binop_other(self, op, value, dtype):
1252-
skip = {(operator.add, 'bool'),
1253-
(operator.sub, 'bool'),
1254-
(operator.mul, 'bool'),
1255-
(operator.truediv, 'bool'),
1256-
(operator.mod, 'i8'),
1257-
(operator.mod, 'complex128'),
1258-
(operator.mod, '<M8[ns]'),
1259-
(operator.mod, '<m8[ns]'),
1260-
(operator.pow, 'bool')}
1251+
skip = {
1252+
(operator.add, 'bool'),
1253+
(operator.sub, 'bool'),
1254+
(operator.mul, 'bool'),
1255+
(operator.truediv, 'bool'),
1256+
(operator.mod, 'i8'),
1257+
(operator.mod, 'complex128'),
1258+
(operator.mod, '<m8[ns]'),
1259+
(operator.pow, 'bool'),
1260+
}
12611261
if (op, dtype) in skip:
12621262
pytest.skip("Invalid combination {},{}".format(op, dtype))
12631263
e = DummyElement(value, dtype)

0 commit comments

Comments
 (0)