diff options
author | Florian Weikert <fwe@google.com> | 2015-08-18 14:37:46 +0000 |
---|---|---|
committer | Lukacs Berki <lberki@google.com> | 2015-08-20 14:43:54 +0000 |
commit | 3f610e837d08eaa72d5ead62a7215365e14a24cb (patch) | |
tree | d7dc43e62a5e916101045ab376e82ba21bc163ec /src/test/java/com/google | |
parent | b537f8250ae1d3d39336c9cf90fc1bba831c6a0f (diff) |
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
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |