From 408da4a2e88436b59adcb3592dd3aed9f2268343 Mon Sep 17 00:00:00 2001 From: OlivierLuG Date: Sat, 13 Jun 2020 18:23:19 +0200 Subject: [PATCH] CI #34131 fix tests failure --- pandas/tests/frame/test_arithmetic.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index cb320b096e80f..561a3882fc749 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -10,7 +10,11 @@ import pandas as pd from pandas import DataFrame, MultiIndex, Series import pandas._testing as tm -from pandas.core.computation.expressions import _USE_NUMEXPR, _MIN_ELEMENTS +from pandas.core.computation.expressions import ( + _USE_NUMEXPR, + _MIN_ELEMENTS, + _NUMEXPR_INSTALLED, +) import pandas.core.common as com from pandas.tests.frame.common import _check_mixed_float, _check_mixed_int @@ -384,6 +388,8 @@ def test_floordiv_axis0_numexpr_path(self, opname): df = pd.DataFrame(arr) if _NUMEXPR_INSTALLED: assert _USE_NUMEXPR + else: + return df["C"] = 1.0 ser = df[0]