We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1552a6 commit eba54e9Copy full SHA for eba54e9
pandas/tests/test_timeseries.py
@@ -2,6 +2,7 @@
2
3
from datetime import datetime, time, timedelta
4
import sys
5
+import os
6
import unittest
7
8
import nose
@@ -401,10 +402,14 @@ class TestLegacySupport(unittest.TestCase):
401
402
403
@classmethod
404
def setUpClass(cls):
- with open('pandas/tests/data/frame.pickle', 'r') as f:
405
+ pth, _ = os.path.split(os.path.abspath(__file__))
406
+ filepath = os.path.join(pth, 'data', 'frame.pickle')
407
+
408
+ with open(filepath, 'r') as f:
409
cls.frame = pickle.load(f)
410
- with open('pandas/tests/data/series.pickle', 'r') as f:
411
+ filepath = os.path.join(pth, 'data', 'series.pickle')
412
413
cls.series = pickle.load(f)
414
415
def test_unpickle_legacy_frame(self):
0 commit comments