From ee250c6e9e7e24761ff26d3ee225ad485a7facf3 Mon Sep 17 00:00:00 2001 From: laurentlb Date: Thu, 7 Sep 2017 19:17:52 +0200 Subject: --incompatible_comprehension_variables_do_not_leak defaults to true RELNOTES[INC]: --incompatible_comprehension_variables_do_not_leak defaults to "true." Iteration variable becomes inaccessible after a list/dict comprehension. PiperOrigin-RevId: 167876119 --- .../com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java') diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java index e27cb6372f..7ab15c9d87 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java @@ -1384,11 +1384,6 @@ public class SkylarkEvaluationTest extends EvaluationTest { + "evaluates to value of length 2", "[x + y for x, y, z in [(1, 2), (3, 4)]]"); - // can't reuse the same local variable twice(!) - new SkylarkTest() - .testIfErrorContains( - "Variable x is read only", "[x + y for x, y in (1, 2)]", "[x + y for x, y in (1, 2)]"); - new SkylarkTest() .testIfErrorContains("type 'int' is not a collection", "[x2 + y2 for x2, y2 in (1, 2)]"); -- cgit v1.2.3