From 4fb1bdba160208be98f253ac7d390df0e0974d38 Mon Sep 17 00:00:00 2001 From: Dmitry Cheryasov Date: Mon, 8 Jun 2009 08:55:00 +0400 Subject: [PATCH] Fixed a false positive in a test. --- python/testData/highlighting/stringEscapedOK.py | 3 ++- .../com/jetbrains/python/PythonHighlightingTest.java | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python/testData/highlighting/stringEscapedOK.py b/python/testData/highlighting/stringEscapedOK.py index 6614439f6782..6e907bd87332 100644 --- a/python/testData/highlighting/stringEscapedOK.py +++ b/python/testData/highlighting/stringEscapedOK.py @@ -1,2 +1,3 @@ # no warnings here -"a\"" \ No newline at end of file +a = 1 # prevent the sting from baeing a doc comment +"a\"" diff --git a/python/testSrc/com/jetbrains/python/PythonHighlightingTest.java b/python/testSrc/com/jetbrains/python/PythonHighlightingTest.java index c637f719d2cf..f90815923aec 100644 --- a/python/testSrc/com/jetbrains/python/PythonHighlightingTest.java +++ b/python/testSrc/com/jetbrains/python/PythonHighlightingTest.java @@ -74,7 +74,7 @@ public class PythonHighlightingTest extends DaemonAnalyzerTestCase { } public void testMalformedStringEscaped() throws Exception { - doTest(); + doTest(false, false); } public void testStringEscapedOK() throws Exception { @@ -98,4 +98,9 @@ public class PythonHighlightingTest extends DaemonAnalyzerTestCase { private void doTest() throws Exception { doTest(getTestName(true) + ".py", true, true); } + + private void doTest(boolean checkWarnings, boolean checkInfos) throws Exception { + doTest(getTestName(true) + ".py", checkWarnings, checkInfos); + } + }