Remove flag incompatible_disallow_dict_plus
https://github.com/bazelbuild/bazel/issues/6461
RELNOTES: None.
PiperOrigin-RevId: 279292100
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 829bdc1..a7da512 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
@@ -1699,23 +1699,13 @@
}
@Test
- public void testPlusEqualsOnDict() throws Exception {
- new SkylarkTest("--incompatible_disallow_dict_plus=false").setUp("def func():",
- " d = {'a' : 1}",
- " d += {'b' : 2}",
- " return d",
- "d = func()")
- .testLookup("d", ImmutableMap.of("a", 1, "b", 2));
- }
-
- @Test
public void testPlusOnDictDeprecated() throws Exception {
- new SkylarkTest("--incompatible_disallow_dict_plus=true")
+ new SkylarkTest()
.testIfErrorContains(
- "The `+` operator for dicts is deprecated and no longer supported.", "{1: 2} + {3: 4}");
- new SkylarkTest("--incompatible_disallow_dict_plus=true")
+ "unsupported operand type(s) for +: 'dict' and 'dict'", "{1: 2} + {3: 4}");
+ new SkylarkTest()
.testIfErrorContains(
- "The `+` operator for dicts is deprecated and no longer supported.",
+ "unsupported operand type(s) for +: 'dict' and 'dict'",
"def func():",
" d = {1: 2}",
" d += {3: 4}",