Make tests independent of the current state of the incompatible_descriptive_string_representations flag
PiperOrigin-RevId: 166475260
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 dd6a46a..a373ba7 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
@@ -1602,14 +1602,14 @@
@Test
public void testStr() throws Exception {
- new BothModesTest()
+ new BothModesTest("--incompatible_descriptive_string_representations=true")
.testStatement("str(1)", "1")
.testStatement("str(-2)", "-2")
.testStatement("str([1, 2])", "[1, 2]")
.testStatement("str(True)", "True")
.testStatement("str(False)", "False")
.testStatement("str(None)", "None")
- .testStatement("str(str)", "<function str>");
+ .testStatement("str(str)", "<built-in function str>");
}
@Test