14
14
from pandas .io .stata import read_stata , StataReader , StataWriter
15
15
import pandas .util .testing as tm
16
16
from pandas .util .testing import ensure_clean
17
- from pandas .util .decorators import knownfailureif
18
17
from pandas .util .misc import is_little_endian
19
18
20
19
class StataTests (unittest .TestCase ):
@@ -129,8 +128,10 @@ def test_read_dta4(self):
129
128
130
129
tm .assert_frame_equal (parsed , expected )
131
130
132
- @knownfailureif (not is_little_endian (), "known failure of test_write_dta5 on non-little endian" )
133
131
def test_write_dta5 (self ):
132
+ if not is_little_endian ():
133
+ raise nose .SkipTest ("known failure of test_write_dta5 on non-little endian" )
134
+
134
135
original = DataFrame ([(np .nan , np .nan , np .nan , np .nan , np .nan )],
135
136
columns = ['float_miss' , 'double_miss' , 'byte_miss' , 'int_miss' , 'long_miss' ])
136
137
original .index .name = 'index'
@@ -140,8 +141,10 @@ def test_write_dta5(self):
140
141
written_and_read_again = self .read_dta (path )
141
142
tm .assert_frame_equal (written_and_read_again .set_index ('index' ), original )
142
143
143
- @knownfailureif (not is_little_endian (), "known failure of test_write_dta6 on non-little endian" )
144
144
def test_write_dta6 (self ):
145
+ if not is_little_endian ():
146
+ raise nose .SkipTest ("known failure of test_write_dta6 on non-little endian" )
147
+
145
148
original = self .read_csv (self .csv3 )
146
149
original .index .name = 'index'
147
150
0 commit comments