Skip to content

Commit 9f1fab9

Browse files
committed
Revert "TST/CLN: remove try/except from test_column_contains_typeerror (pandas-dev#26442)"
This reverts commit a7d3cc9.
1 parent 978ba46 commit 9f1fab9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/frame/test_api.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ def test_keys(self, float_frame):
111111
getkeys = float_frame.keys
112112
assert getkeys() is float_frame.columns
113113

114-
def test_column_contains_raises(self, float_frame):
115-
with pytest.raises(TypeError, match="unhashable type: 'Index'"):
114+
def test_column_contains_typeerror(self, float_frame):
115+
try:
116116
float_frame.columns in float_frame
117+
except TypeError:
118+
pass
117119

118120
def test_tab_completion(self):
119121
# DataFrame whose columns are identifiers shall have them in __dir__.

0 commit comments

Comments
 (0)