diff options
author | laurentlb <laurentlb@google.com> | 2017-08-22 16:45:28 +0200 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-08-22 17:45:44 +0200 |
commit | ab58a9244bfccbc80fc3970329a36ce6ee3d4006 (patch) | |
tree | 2ab8d4d3ab947467e27b3cd55bf787a94e25bb48 /src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java | |
parent | f129657059d79fc0d4363244d698f295866d91f6 (diff) |
Remove dialect distinction from the parser.
RELNOTES: None.
PiperOrigin-RevId: 166058718
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java index 35b1e3797b..516a20eb8e 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java @@ -1314,16 +1314,17 @@ public class SkylarkIntegrationTest extends BuildViewTestCase { "test/skylark/macro.bzl", "x = 5"); - scratch.file("test/skylark/BUILD", + scratch.file( + "test/skylark/BUILD", "load('//test/skylark:macro.bzl', 'x')", - "if 0: pass", // syntax error + "pass", // syntax error "print(1 / (5 - x)"); // division by 0 // Make sure that evaluation continues and load() succeeds, despite a syntax // error in the file. // We can get the division by 0 only if x was correctly loaded. getConfiguredTarget("//test/skylark:a"); - assertContainsEvent("syntax error at 'if'"); + assertContainsEvent("syntax error"); assertContainsEvent("integer division by zero"); } |