diff --git a/ci/lint.sh b/ci/lint.sh index c26b5f00d5a48..71d8c5c7e1621 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -72,7 +72,13 @@ if [ "$LINT" ]; then echo "Linting *.c and *.h DONE" echo "Check for invalid testing" - grep -r -E --include '*.py' --exclude testing.py '(numpy|np)\.testing' pandas + + # Check for the following code in testing: + # + # np.testing + # np.array_equal + grep -r -E --include '*.py' --exclude testing.py '(numpy|np)(\.testing|\.array_equal)' pandas/tests/ + if [ $? = "0" ]; then RET=1 fi diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index c182db35c0c89..4c0c7d8598a8e 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -286,29 +286,6 @@ def test_delete(self): with pytest.raises(Exception): newb.delete(3) - def test_split_block_at(self): - - # with dup column support this method was taken out - # GH3679 - pytest.skip("skipping for now") - - bs = list(self.fblock.split_block_at('a')) - assert len(bs) == 1 - assert np.array_equal(bs[0].items, ['c', 'e']) - - bs = list(self.fblock.split_block_at('c')) - assert len(bs) == 2 - assert np.array_equal(bs[0].items, ['a']) - assert np.array_equal(bs[1].items, ['e']) - - bs = list(self.fblock.split_block_at('e')) - assert len(bs) == 1 - assert np.array_equal(bs[0].items, ['a', 'c']) - - # bblock = get_bool_ex(['f']) - # bs = list(bblock.split_block_at('f')) - # assert len(bs), 0) - class TestDatetimeBlock(object):