Skip to content

Commit d36e9ac

Browse files
committed
TST: Remove tests using proprietary data
Removes three tests that use data not available for testing.
1 parent dcbd007 commit d36e9ac

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

pandas/io/tests/test_stata.py

-31
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@
2020
PossiblePrecisionLoss, StataMissingValue)
2121
import pandas.util.testing as tm
2222
from pandas.tslib import NaT
23-
from pandas.util.misc import is_little_endian
2423
from pandas import compat
2524

2625
class TestStata(tm.TestCase):
2726

2827
def setUp(self):
29-
# Unit test datasets for dta7 - dta9 (old stata formats 104, 105 and 107) can be downloaded from:
30-
# http://stata-press.com/data/glmext.html
3128
self.dirpath = tm.get_data_path()
3229
self.dta1_114 = os.path.join(self.dirpath, 'stata1_114.dta')
3330
self.dta1_117 = os.path.join(self.dirpath, 'stata1_117.dta')
@@ -48,16 +45,6 @@ def setUp(self):
4845
self.dta4_115 = os.path.join(self.dirpath, 'stata4_115.dta')
4946
self.dta4_117 = os.path.join(self.dirpath, 'stata4_117.dta')
5047

51-
self.dta7 = os.path.join(self.dirpath, 'cancer.dta')
52-
self.csv7 = os.path.join(self.dirpath, 'cancer.csv')
53-
54-
self.dta8 = os.path.join(self.dirpath, 'tbl19-3.dta')
55-
56-
self.csv8 = os.path.join(self.dirpath, 'tbl19-3.csv')
57-
58-
self.dta9 = os.path.join(self.dirpath, 'lbw.dta')
59-
self.csv9 = os.path.join(self.dirpath, 'lbw.csv')
60-
6148
self.dta_encoding = os.path.join(self.dirpath, 'stata1_encoding.dta')
6249

6350
self.csv14 = os.path.join(self.dirpath, 'stata5.csv')
@@ -253,24 +240,6 @@ def test_write_dta6(self):
253240
tm.assert_frame_equal(written_and_read_again.set_index('index'),
254241
original)
255242

256-
@nose.tools.nottest
257-
def test_read_dta7(self):
258-
expected = read_csv(self.csv7, parse_dates=True, sep='\t')
259-
parsed = self.read_dta(self.dta7)
260-
tm.assert_frame_equal(parsed, expected)
261-
262-
@nose.tools.nottest
263-
def test_read_dta8(self):
264-
expected = read_csv(self.csv8, parse_dates=True, sep='\t')
265-
parsed = self.read_dta(self.dta8)
266-
tm.assert_frame_equal(parsed, expected)
267-
268-
@nose.tools.nottest
269-
def test_read_dta9(self):
270-
expected = read_csv(self.csv9, parse_dates=True, sep='\t')
271-
parsed = self.read_dta(self.dta9)
272-
tm.assert_frame_equal(parsed, expected)
273-
274243
def test_read_write_dta10(self):
275244
original = DataFrame(data=[["string", "object", 1, 1.1,
276245
np.datetime64('2003-12-25')]],

0 commit comments

Comments
 (0)