We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9589d commit a7d3cc9Copy full SHA for a7d3cc9
pandas/tests/frame/test_api.py
@@ -111,11 +111,9 @@ def test_keys(self, float_frame):
111
getkeys = float_frame.keys
112
assert getkeys() is float_frame.columns
113
114
- def test_column_contains_typeerror(self, float_frame):
115
- try:
+ def test_column_contains_raises(self, float_frame):
+ with pytest.raises(TypeError, match="unhashable type: 'Index'"):
116
float_frame.columns in float_frame
117
- except TypeError:
118
- pass
119
120
def test_tab_completion(self):
121
# DataFrame whose columns are identifiers shall have them in __dir__.
0 commit comments