This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree 2 files changed +14
-3
lines changed 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 30
30
from jsonschema import (RefResolver , ValidationError )
31
31
import jsonschema
32
32
from numpy import ndarray
33
- from pandas .core .common import PandasError
34
33
from pandas .core .generic import NDFrame
35
34
from six import string_types
36
35
from wltp .cycles import (class1 , class2 , class3 )
41
40
import operator as ops
42
41
import pandas as pd
43
42
43
+ try :
44
+ from pandas .core .common import PandasError
45
+ except ImportError :
46
+ ## Pandas-0.20.1 dropped this classs.
47
+ # See https://github.com/pydata/pandas-datareader/issues/305
48
+ PandasError = ValueError
49
+
44
50
45
51
log = logging .getLogger (__name__ )
46
52
Original file line number Diff line number Diff line change 13
13
from wltp .experiment import Experiment
14
14
from wltp .test .goodvehicle import goodVehicle
15
15
16
- from pandas .core .common import PandasError
17
-
18
16
import numpy as np
19
17
import numpy .testing as npt
20
18
import pandas as pd
21
19
22
20
from ..utils import assertRaisesRegex
23
21
22
+ try :
23
+ from pandas .core .common import PandasError
24
+ except ImportError :
25
+ ## Pandas-0.20.1 dropped this classs.
26
+ # See https://github.com/pydata/pandas-datareader/issues/305
27
+ PandasError = ValueError
28
+
24
29
25
30
class TestForcedCycle (unittest .TestCase ):
26
31
def setUp (self ):
You can’t perform that action at this time.
0 commit comments