We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3da42 commit 51cba77Copy full SHA for 51cba77
tests/ndarray/test_lazyexpr.py
@@ -1327,7 +1327,9 @@ def test_missing_operator():
1327
assert expr2.operands["a"] is not None
1328
assert expr2.operands["b"] is None
1329
# Check that the expression is still there, and can be introspected
1330
- assert expr2.expression == "a + b"
+ # Note the added parentheses. The parser automatically adds these,
1331
+ # mainly because of possible operator precedence issues in nested expressions.
1332
+ assert expr2.expression == "(a + b)"
1333
# Check that dtype and shape are None
1334
assert expr2.dtype is None
1335
assert expr2.shape is None
0 commit comments