Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert nonstandard use of get_data_path
  • Loading branch information
jbrockmendel committed Nov 3, 2017
commit db38ef23366c5fa3b73b589cf042313afaaa96fd
7 changes: 2 additions & 5 deletions pandas/tests/tseries/test_offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
from pandas.tseries.holiday import USFederalHolidayCalendar


data_dir = tm.get_data_path()


def test_monthrange():
import calendar
for y in range(2000, 2013):
Expand Down Expand Up @@ -483,7 +480,7 @@ def test_pickle_v0_15_2(self):
'Day': Day(1),
'YearBegin': YearBegin(1),
'Week': Week(1)}
pickle_path = os.path.join(data_dir,
pickle_path = os.path.join(tm.get_data_path(),
'dateoffset_0_15_2.pickle')
# This code was executed once on v0.15.2 to generate the pickle:
# with open(pickle_path, 'wb') as f: pickle.dump(offsets, f)
Expand Down Expand Up @@ -1887,7 +1884,7 @@ def _check_roundtrip(obj):
def test_pickle_compat_0_14_1(self):
hdays = [datetime(2013, 1, 1) for ele in range(4)]

pth = data_dir
pth = tm.get_data_path()

cday0_14_1 = read_pickle(os.path.join(pth, 'cday-0.14.1.pickle'))
cday = CDay(holidays=hdays)
Expand Down