@@ -98,17 +98,17 @@ def _is_py3_complex_incompat(result, expected):
98
98
class TestEvalNumexprPandas (tm .TestCase ):
99
99
100
100
@classmethod
101
- def setUpClass (cls ):
102
- super (TestEvalNumexprPandas , cls ).setUpClass ()
101
+ def setup_class (cls ):
102
+ super (TestEvalNumexprPandas , cls ).setup_class ()
103
103
tm .skip_if_no_ne ()
104
104
import numexpr as ne
105
105
cls .ne = ne
106
106
cls .engine = 'numexpr'
107
107
cls .parser = 'pandas'
108
108
109
109
@classmethod
110
- def tearDownClass (cls ):
111
- super (TestEvalNumexprPandas , cls ).tearDownClass ()
110
+ def teardown_class (cls ):
111
+ super (TestEvalNumexprPandas , cls ).teardown_class ()
112
112
del cls .engine , cls .parser
113
113
if hasattr (cls , 'ne' ):
114
114
del cls .ne
@@ -137,12 +137,12 @@ def setup_ops(self):
137
137
self .arith_ops = _good_arith_ops
138
138
self .unary_ops = '-' , '~' , 'not '
139
139
140
- def setUp (self ):
140
+ def setup_method (self , method ):
141
141
self .setup_ops ()
142
142
self .setup_data ()
143
143
self .current_engines = filter (lambda x : x != self .engine , _engines )
144
144
145
- def tearDown (self ):
145
+ def teardown_method (self , method ):
146
146
del self .lhses , self .rhses , self .scalar_rhses , self .scalar_lhses
147
147
del self .pandas_rhses , self .pandas_lhses , self .current_engines
148
148
@@ -723,8 +723,8 @@ def test_float_truncation(self):
723
723
class TestEvalNumexprPython (TestEvalNumexprPandas ):
724
724
725
725
@classmethod
726
- def setUpClass (cls ):
727
- super (TestEvalNumexprPython , cls ).setUpClass ()
726
+ def setup_class (cls ):
727
+ super (TestEvalNumexprPython , cls ).setup_class ()
728
728
tm .skip_if_no_ne ()
729
729
import numexpr as ne
730
730
cls .ne = ne
@@ -750,8 +750,8 @@ def check_chained_cmp_op(self, lhs, cmp1, mid, cmp2, rhs):
750
750
class TestEvalPythonPython (TestEvalNumexprPython ):
751
751
752
752
@classmethod
753
- def setUpClass (cls ):
754
- super (TestEvalPythonPython , cls ).setUpClass ()
753
+ def setup_class (cls ):
754
+ super (TestEvalPythonPython , cls ).setup_class ()
755
755
cls .engine = 'python'
756
756
cls .parser = 'python'
757
757
@@ -780,8 +780,8 @@ def check_alignment(self, result, nlhs, ghs, op):
780
780
class TestEvalPythonPandas (TestEvalPythonPython ):
781
781
782
782
@classmethod
783
- def setUpClass (cls ):
784
- super (TestEvalPythonPandas , cls ).setUpClass ()
783
+ def setup_class (cls ):
784
+ super (TestEvalPythonPandas , cls ).setup_class ()
785
785
cls .engine = 'python'
786
786
cls .parser = 'pandas'
787
787
@@ -1070,16 +1070,16 @@ def test_performance_warning_for_poor_alignment(self, engine, parser):
1070
1070
class TestOperationsNumExprPandas (tm .TestCase ):
1071
1071
1072
1072
@classmethod
1073
- def setUpClass (cls ):
1074
- super (TestOperationsNumExprPandas , cls ).setUpClass ()
1073
+ def setup_class (cls ):
1074
+ super (TestOperationsNumExprPandas , cls ).setup_class ()
1075
1075
tm .skip_if_no_ne ()
1076
1076
cls .engine = 'numexpr'
1077
1077
cls .parser = 'pandas'
1078
1078
cls .arith_ops = expr ._arith_ops_syms + expr ._cmp_ops_syms
1079
1079
1080
1080
@classmethod
1081
- def tearDownClass (cls ):
1082
- super (TestOperationsNumExprPandas , cls ).tearDownClass ()
1081
+ def teardown_class (cls ):
1082
+ super (TestOperationsNumExprPandas , cls ).teardown_class ()
1083
1083
del cls .engine , cls .parser
1084
1084
1085
1085
def eval (self , * args , ** kwargs ):
@@ -1492,8 +1492,8 @@ def test_simple_in_ops(self):
1492
1492
class TestOperationsNumExprPython (TestOperationsNumExprPandas ):
1493
1493
1494
1494
@classmethod
1495
- def setUpClass (cls ):
1496
- super (TestOperationsNumExprPython , cls ).setUpClass ()
1495
+ def setup_class (cls ):
1496
+ super (TestOperationsNumExprPython , cls ).setup_class ()
1497
1497
cls .engine = 'numexpr'
1498
1498
cls .parser = 'python'
1499
1499
tm .skip_if_no_ne (cls .engine )
@@ -1566,8 +1566,8 @@ def test_simple_bool_ops(self):
1566
1566
class TestOperationsPythonPython (TestOperationsNumExprPython ):
1567
1567
1568
1568
@classmethod
1569
- def setUpClass (cls ):
1570
- super (TestOperationsPythonPython , cls ).setUpClass ()
1569
+ def setup_class (cls ):
1570
+ super (TestOperationsPythonPython , cls ).setup_class ()
1571
1571
cls .engine = cls .parser = 'python'
1572
1572
cls .arith_ops = expr ._arith_ops_syms + expr ._cmp_ops_syms
1573
1573
cls .arith_ops = filter (lambda x : x not in ('in' , 'not in' ),
@@ -1577,8 +1577,8 @@ def setUpClass(cls):
1577
1577
class TestOperationsPythonPandas (TestOperationsNumExprPandas ):
1578
1578
1579
1579
@classmethod
1580
- def setUpClass (cls ):
1581
- super (TestOperationsPythonPandas , cls ).setUpClass ()
1580
+ def setup_class (cls ):
1581
+ super (TestOperationsPythonPandas , cls ).setup_class ()
1582
1582
cls .engine = 'python'
1583
1583
cls .parser = 'pandas'
1584
1584
cls .arith_ops = expr ._arith_ops_syms + expr ._cmp_ops_syms
@@ -1587,16 +1587,16 @@ def setUpClass(cls):
1587
1587
class TestMathPythonPython (tm .TestCase ):
1588
1588
1589
1589
@classmethod
1590
- def setUpClass (cls ):
1591
- super (TestMathPythonPython , cls ).setUpClass ()
1590
+ def setup_class (cls ):
1591
+ super (TestMathPythonPython , cls ).setup_class ()
1592
1592
tm .skip_if_no_ne ()
1593
1593
cls .engine = 'python'
1594
1594
cls .parser = 'pandas'
1595
1595
cls .unary_fns = _unary_math_ops
1596
1596
cls .binary_fns = _binary_math_ops
1597
1597
1598
1598
@classmethod
1599
- def tearDownClass (cls ):
1599
+ def teardown_class (cls ):
1600
1600
del cls .engine , cls .parser
1601
1601
1602
1602
def eval (self , * args , ** kwargs ):
@@ -1694,26 +1694,26 @@ def test_keyword_arg(self):
1694
1694
class TestMathPythonPandas (TestMathPythonPython ):
1695
1695
1696
1696
@classmethod
1697
- def setUpClass (cls ):
1698
- super (TestMathPythonPandas , cls ).setUpClass ()
1697
+ def setup_class (cls ):
1698
+ super (TestMathPythonPandas , cls ).setup_class ()
1699
1699
cls .engine = 'python'
1700
1700
cls .parser = 'pandas'
1701
1701
1702
1702
1703
1703
class TestMathNumExprPandas (TestMathPythonPython ):
1704
1704
1705
1705
@classmethod
1706
- def setUpClass (cls ):
1707
- super (TestMathNumExprPandas , cls ).setUpClass ()
1706
+ def setup_class (cls ):
1707
+ super (TestMathNumExprPandas , cls ).setup_class ()
1708
1708
cls .engine = 'numexpr'
1709
1709
cls .parser = 'pandas'
1710
1710
1711
1711
1712
1712
class TestMathNumExprPython (TestMathPythonPython ):
1713
1713
1714
1714
@classmethod
1715
- def setUpClass (cls ):
1716
- super (TestMathNumExprPython , cls ).setUpClass ()
1715
+ def setup_class (cls ):
1716
+ super (TestMathNumExprPython , cls ).setup_class ()
1717
1717
cls .engine = 'numexpr'
1718
1718
cls .parser = 'python'
1719
1719
0 commit comments