Skip to content

Commit

Permalink
Test cleanpu
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Feb 13, 2018
1 parent 1436d1d commit c4dab88
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 48 deletions.
2 changes: 1 addition & 1 deletion pandas/core/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3473,7 +3473,7 @@ def apply(self, f, axes=None, filter=None, do_integrity_check=False,
else:
align_keys = []

# TODO: may interfere with ExtensionBlock.setitem for blocks
# TODO(EA): may interfere with ExtensionBlock.setitem for blocks
# with a .values attribute.
aligned_args = dict((k, kwargs[k])
for k in align_keys
Expand Down
7 changes: 1 addition & 6 deletions pandas/tests/extension/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,12 @@ def test_isna(self, data_missing):
expected = pd.Series(expected)
tm.assert_series_equal(result, expected)

def test_dropna(self, data_missing):
result = pd.Series(data_missing).dropna()
expected = pd.Series(data_missing).iloc[[1]]
tm.assert_series_equal(result, expected)

def test_align(self, data):
a = data[:3]
b = data[2:5]
r1, r2 = pd.Series(a).align(pd.Series(b, index=[1, 2, 3]))

# TODO: assumes that the ctor can take a list of scalars of the type
# Assumes that the ctor can take a list of scalars of the type
e1 = pd.Series(type(data)(list(a) + [data._fill_value]))
e2 = pd.Series(type(data)([data._fill_value] + list(b)))
tm.assert_series_equal(r1, e1)
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/extension/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def test_align(self, data):
b = data[2:5]
r1, r2 = pd.Series(a).align(pd.Series(b, index=[1, 2, 3]))

# TODO: assumes that the ctor can take a list of scalars of the type
e1 = pd.Series(type(data)(list(a) + [data._fill_value],
dtype=data.dtype))
e2 = pd.Series(type(data)([data._fill_value] + list(b),
Expand Down
40 changes: 0 additions & 40 deletions pandas/tests/extension/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,43 +133,3 @@ def na_cmp(self):
@pytest.mark.skip(reason="Unhashable")
def test_value_counts(self, all_data, dropna):
pass

# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
# def test_set_scalar(self):
# pass
#

@pytest.mark.xfail(reason="Difficulty setting sized objects.")
def test_set_loc_scalar_mixed(self):
# This fails on an np.ndarary(dict) call in _setitem_with_indexer
pass

# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
# def test_set_loc_scalar_single(self):
# pass
#

@pytest.mark.xfail(reason="Difficulty setting sized objects.")
def test_set_loc_scalar_multiple_homogoneous(self):
# This fails in _setitem_with_indexer with a
# ValueError: Must have equal len keys and value when setting with
# and iterable
pass

@pytest.mark.xfail(reason="Difficulty setting sized objects.")
def test_set_iloc_scalar_mixed(self):
# This fails in _setitem_with_indexer with a
# ValueError: Must have equal len keys and value when setting with an
# iterable
pass

# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
# def test_set_iloc_scalar_single(self):
# pass
#
@pytest.mark.xfail(reason="Difficulty setting sized objects.")
def test_set_iloc_scalar_multiple_homogoneous(self):
# this fails in _setitem_with_indexer with a
# ValueError: Must have equal len keys and value when setting with an
# iterable
pass

0 comments on commit c4dab88

Please sign in to comment.