File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4877,15 +4877,17 @@ def test_to_hdf_with_object_column_names(self):
4877
4877
if compat .PY3 :
4878
4878
types_should_run .append (tm .makeUnicodeIndex )
4879
4879
else :
4880
- types_should_fail .append (tm .makeUnicodeIndex )
4880
+ # TODO: Add back to types_should_fail
4881
+ # https://github.com/pandas-dev/pandas/issues/20907
4882
+ pass
4881
4883
4882
4884
for index in types_should_fail :
4883
4885
df = DataFrame (np .random .randn (10 , 2 ), columns = index (2 ))
4884
4886
with ensure_clean_path (self .path ) as path :
4885
4887
with catch_warnings (record = True ):
4886
- with pytest . raises (
4887
- ValueError , msg = ("cannot have non-object label "
4888
- "DataIndexableCol" )):
4888
+ with tm . assert_raises_regex (
4889
+ ValueError , ("cannot have non-object label "
4890
+ "DataIndexableCol" )):
4889
4891
df .to_hdf (path , 'df' , format = 'table' ,
4890
4892
data_columns = True )
4891
4893
You can’t perform that action at this time.
0 commit comments