From 3f610e837d08eaa72d5ead62a7215365e14a24cb Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Tue, 18 Aug 2015 14:37:46 +0000 Subject: Skylark error messages now include a stack trace. This means that some tests had to be changed from using exact equality of error messages to working with contains() / startsWith(). -- MOS_MIGRATED_REVID=100923593 --- .../com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/java/com/google') 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 575e0a67d7..e794aa7799 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 @@ -804,7 +804,7 @@ public class SkylarkEvaluationTest extends EvaluationTest { @Test public void testFunctionCallBadOrdering() throws Exception { - new SkylarkTest().testIfExactError("name 'foo' is not defined", + new SkylarkTest().testIfErrorContains("name 'foo' is not defined", "def func(): return foo() * 2", "x = func()", "def foo(): return 2"); -- cgit v1.2.3