Skip to content

Commit e0e8bf1

Browse files
committed
TST: test_nanops turns off bottneck for all tests after
1 parent aa40dd0 commit e0e8bf1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/tests/test_nanops.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
import pandas.core.nanops as nanops
1010
import pandas.util.testing as tm
1111

12-
nanops._USE_BOTTLENECK = False
13-
12+
use_bn = nanops._USE_BOTTLENECK
1413

1514
class TestnanopsDataFrame(tm.TestCase):
15+
1616
def setUp(self):
1717
np.random.seed(11235)
18+
nanops._USE_BOTTLENECK = False
1819

1920
self.arr_shape = (11, 7, 5)
2021

@@ -116,6 +117,9 @@ def setUp(self):
116117
self.arr_float_nan_inf_1d = self.arr_float_nan_inf[:, 0, 0]
117118
self.arr_nan_nan_inf_1d = self.arr_nan_nan_inf[:, 0, 0]
118119

120+
def tearDown(self):
121+
nanops._USE_BOTTLENECK = use_bn
122+
119123
def check_results(self, targ, res, axis):
120124
res = getattr(res, 'asm8', res)
121125
res = getattr(res, 'values', res)

0 commit comments

Comments
 (0)