Skip to content

Commit 1f2a13e

Browse files
committed
TST: removes name collision warning test
1 parent 99d0be8 commit 1f2a13e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/tests/dtypes/test_generic.py

-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def test_abc_types(self):
4848

4949

5050
def test_setattr_warnings():
51-
# GH5904 - Suggestion: Warning for DataFrame colname-methodname clash
5251
# GH7175 - GOTCHA: You can't use dot notation to add a column...
5352
d = {'one': pd.Series([1., 2., 3.], index=['a', 'b', 'c']),
5453
'two': pd.Series([1., 2., 3., 4.], index=['a', 'b', 'c', 'd'])}
@@ -78,7 +77,3 @@ def test_setattr_warnings():
7877
# warn when setting column to nonexistent name
7978
df.four = df.two + 2
8079
assert df.four.sum() > df.two.sum()
81-
82-
with tm.assert_produces_warning(UserWarning):
83-
# warn when column has same name as method
84-
df['sum'] = df.two

0 commit comments

Comments
 (0)