Skip to content

TST: Remove tests using proprietary data #9271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions pandas/io/tests/test_stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
PossiblePrecisionLoss, StataMissingValue)
import pandas.util.testing as tm
from pandas.tslib import NaT
from pandas.util.misc import is_little_endian
from pandas import compat

class TestStata(tm.TestCase):

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

self.dta7 = os.path.join(self.dirpath, 'cancer.dta')
self.csv7 = os.path.join(self.dirpath, 'cancer.csv')

self.dta8 = os.path.join(self.dirpath, 'tbl19-3.dta')

self.csv8 = os.path.join(self.dirpath, 'tbl19-3.csv')

self.dta9 = os.path.join(self.dirpath, 'lbw.dta')
self.csv9 = os.path.join(self.dirpath, 'lbw.csv')

self.dta_encoding = os.path.join(self.dirpath, 'stata1_encoding.dta')

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

@nose.tools.nottest
def test_read_dta7(self):
expected = read_csv(self.csv7, parse_dates=True, sep='\t')
parsed = self.read_dta(self.dta7)
tm.assert_frame_equal(parsed, expected)

@nose.tools.nottest
def test_read_dta8(self):
expected = read_csv(self.csv8, parse_dates=True, sep='\t')
parsed = self.read_dta(self.dta8)
tm.assert_frame_equal(parsed, expected)

@nose.tools.nottest
def test_read_dta9(self):
expected = read_csv(self.csv9, parse_dates=True, sep='\t')
parsed = self.read_dta(self.dta9)
tm.assert_frame_equal(parsed, expected)

def test_read_write_dta10(self):
original = DataFrame(data=[["string", "object", 1, 1.1,
np.datetime64('2003-12-25')]],
Expand Down