(self, request, comparison_op, left_fix, right_fix)
| 243 | "left_fix,right_fix", [("_array", "_array2"), ("_array_mixed", "_array_mixed2")] |
| 244 | ) |
| 245 | def test_comparison_ops(self, request, comparison_op, left_fix, right_fix): |
| 246 | left = request.getfixturevalue(left_fix) |
| 247 | right = request.getfixturevalue(right_fix) |
| 248 | |
| 249 | def testit(): |
| 250 | f12 = left + 1 |
| 251 | f22 = right + 1 |
| 252 | |
| 253 | op = comparison_op |
| 254 | |
| 255 | result = expr.evaluate(op, left, f12, use_numexpr=True) |
| 256 | expected = expr.evaluate(op, left, f12, use_numexpr=False) |
| 257 | tm.assert_numpy_array_equal(result, expected) |
| 258 | |
| 259 | result = expr._can_use_numexpr(op, op, right, f22, "evaluate") |
| 260 | assert not result |
| 261 | |
| 262 | with option_context("compute.use_numexpr", False): |
| 263 | testit() |
| 264 | |
| 265 | expr.set_numexpr_threads(1) |
| 266 | testit() |
| 267 | expr.set_numexpr_threads() |
| 268 | testit() |
| 269 | |
| 270 | @pytest.mark.parametrize("cond", [True, False]) |
| 271 | @pytest.mark.parametrize("fixture", ["_frame", "_frame2", "_mixed", "_mixed2"]) |
nothing calls this directly
no test coverage detected