19
19
from pandas .util .misc import is_little_endian
20
20
from pandas import compat
21
21
22
- def skip_if_not_little_endian ():
23
- if not is_little_endian ():
24
- raise nose .SkipTest ("known failure of test on non-little endian" )
22
+ if not is_little_endian ():
23
+ raise nose .SkipTest ("known failure of test_stata on non-little endian" )
25
24
26
25
class TestStata (tm .TestCase ):
27
26
@@ -198,8 +197,6 @@ def test_read_dta4(self):
198
197
tm .assert_frame_equal (parsed_117 , expected )
199
198
200
199
def test_read_write_dta5 (self ):
201
- # skip_if_not_little_endian()
202
-
203
200
original = DataFrame ([(np .nan , np .nan , np .nan , np .nan , np .nan )],
204
201
columns = ['float_miss' , 'double_miss' , 'byte_miss' ,
205
202
'int_miss' , 'long_miss' ])
@@ -212,8 +209,6 @@ def test_read_write_dta5(self):
212
209
original )
213
210
214
211
def test_write_dta6 (self ):
215
- # skip_if_not_little_endian()
216
-
217
212
original = self .read_csv (self .csv3 )
218
213
original .index .name = 'index'
219
214
original .index = original .index .astype (np .int32 )
@@ -245,8 +240,6 @@ def test_read_dta9(self):
245
240
tm .assert_frame_equal (parsed , expected )
246
241
247
242
def test_read_write_dta10 (self ):
248
- # skip_if_not_little_endian()
249
-
250
243
original = DataFrame (data = [["string" , "object" , 1 , 1.1 ,
251
244
np .datetime64 ('2003-12-25' )]],
252
245
columns = ['string' , 'object' , 'integer' , 'floating' ,
@@ -284,8 +277,6 @@ def test_encoding(self):
284
277
self .assertIsInstance (result , unicode )
285
278
286
279
def test_read_write_dta11 (self ):
287
- # skip_if_not_little_endian()
288
-
289
280
original = DataFrame ([(1 , 2 , 3 , 4 )],
290
281
columns = ['good' , compat .u ('b\u00E4 d' ), '8number' , 'astringwithmorethan32characters______' ])
291
282
formatted = DataFrame ([(1 , 2 , 3 , 4 )],
@@ -303,8 +294,6 @@ def test_read_write_dta11(self):
303
294
tm .assert_frame_equal (written_and_read_again .set_index ('index' ), formatted )
304
295
305
296
def test_read_write_dta12 (self ):
306
- # skip_if_not_little_endian()
307
-
308
297
original = DataFrame ([(1 , 2 , 3 , 4 , 5 , 6 )],
309
298
columns = ['astringwithmorethan32characters_1' ,
310
299
'astringwithmorethan32characters_2' ,
0 commit comments