File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 31
31
StataMissingValue ,
32
32
StataReader ,
33
33
StataWriterUTF8 ,
34
+ ValueLabelTypeMismatch ,
34
35
read_stata ,
35
36
)
36
37
@@ -435,7 +436,7 @@ def test_read_write_dta11(self):
435
436
formatted = formatted .astype (np .int32 )
436
437
437
438
with tm .ensure_clean () as path :
438
- with tm .assert_produces_warning (io . stata . InvalidColumnName ):
439
+ with tm .assert_produces_warning (InvalidColumnName ):
439
440
original .to_stata (path , None )
440
441
441
442
written_and_read_again = self .read_dta (path )
@@ -1022,7 +1023,7 @@ def test_categorical_warnings_and_errors(self):
1022
1023
[original [col ].astype ("category" ) for col in original ], axis = 1
1023
1024
)
1024
1025
1025
- with tm .assert_produces_warning (io . stata . ValueLabelTypeMismatch ):
1026
+ with tm .assert_produces_warning (ValueLabelTypeMismatch ):
1026
1027
original .to_stata (path )
1027
1028
# should get a warning for mixed content
1028
1029
@@ -1652,7 +1653,7 @@ def test_convert_strl_name_swap(self):
1652
1653
)
1653
1654
original .index .name = "index"
1654
1655
1655
- with tm .assert_produces_warning (io . stata . InvalidColumnName ):
1656
+ with tm .assert_produces_warning (InvalidColumnName ):
1656
1657
with tm .ensure_clean () as path :
1657
1658
original .to_stata (path , convert_strl = ["long" , 1 ], version = 117 )
1658
1659
reread = self .read_dta (path )
You can’t perform that action at this time.
0 commit comments