@@ -914,7 +914,8 @@ def test_read_chunks_117(self):
914
914
warnings .simplefilter ("always" )
915
915
parsed = read_stata (fname , convert_categoricals = convert_categoricals ,
916
916
convert_dates = convert_dates )
917
- itr = read_stata (fname , iterator = True )
917
+ itr = read_stata (fname , iterator = True , convert_categoricals = convert_categoricals ,
918
+ convert_dates = convert_dates )
918
919
919
920
pos = 0
920
921
for j in range (5 ):
@@ -967,13 +968,15 @@ def test_read_chunks_115(self):
967
968
for convert_categoricals in False , True :
968
969
for convert_dates in False , True :
969
970
971
+ # Read the whole file
970
972
with warnings .catch_warnings (record = True ) as w :
971
973
warnings .simplefilter ("always" )
972
974
parsed = read_stata (fname , convert_categoricals = convert_categoricals ,
973
975
convert_dates = convert_dates )
974
- itr = read_stata (fname , iterator = True ,
975
- convert_categoricals = convert_categoricals )
976
976
977
+ # Compare to what we get when reading by chunk
978
+ itr = read_stata (fname , iterator = True , convert_dates = convert_dates ,
979
+ convert_categoricals = convert_categoricals )
977
980
pos = 0
978
981
for j in range (5 ):
979
982
with warnings .catch_warnings (record = True ) as w :
0 commit comments