Skip to content

Commit 51cba77

Browse files
committed
Fix for a feature introduced in #391
1 parent fd3da42 commit 51cba77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ndarray/test_lazyexpr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,9 @@ def test_missing_operator():
13271327
assert expr2.operands["a"] is not None
13281328
assert expr2.operands["b"] is None
13291329
# Check that the expression is still there, and can be introspected
1330-
assert expr2.expression == "a + b"
1330+
# 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)"
13311333
# Check that dtype and shape are None
13321334
assert expr2.dtype is None
13331335
assert expr2.shape is None

0 commit comments

Comments
 (0)