aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java
diff options
context:
space:
mode:
authorGravatar Jon Brandvein <brandjon@google.com>2016-07-26 13:04:10 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-07-27 11:12:58 +0000
commitad81cffc9d9c6234fe22c19bd26523313a82d554 (patch)
tree040c08c6a2980da22cc9234bd0b53d1b4c23845f /src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java
parent0c8bbc913a4e2c8c02898b7358d4a4c421801795 (diff)
Make 3-arg form of getattr() work when third arg is None
-- MOS_MIGRATED_REVID=128463789
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java b/src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java
index 725a21f0d6..1eaecb7e46 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/MethodLibraryTest.java
@@ -460,7 +460,8 @@ public class MethodLibraryTest extends EvaluationTestCase {
.testIfExactError(
"Object of type 'string' has no attribute \"not_there\"",
"getattr('a string', 'not_there')")
- .testStatement("getattr('a string', 'not_there', 'use this')", "use this");
+ .testStatement("getattr('a string', 'not_there', 'use this')", "use this")
+ .testStatement("getattr('a string', 'not there', None)", Runtime.NONE);
}
@Test