test fix
authorIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Mon, 31 Aug 2015 17:24:46 +0000 (20:24 +0300)
committerIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Mon, 31 Aug 2015 17:24:46 +0000 (20:24 +0300)
python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java

index c81772187191f9e49ffc1bbcab1d3002c8946f30..33b89821ce19d81b3437506a81974aabde360d0b 100644 (file)
@@ -144,10 +144,10 @@ public class PythonUnitTestingTest extends PyEnvTestCase {
                                       @NotNull final String stderr,
                                       @NotNull final String all) {
         final List<String> fileNames = runner.getHighlightedStringsInConsole().getSecond();
-        Assert.assertThat(String.format("Wrong number of highlighted entries(%s) in the following output: %s",
+        Assert.assertTrue(String.format("Not enough highlighted entries(%s) in the following output: %s",
                                         StringUtil.join(fileNames, ","),
                                         runner.getAllConsoleText()),
-                          fileNames, Matchers.hasSize(3));
+                          fileNames.size() >= 3);
         // UnitTest highlights file name
         Assert.assertThat("Bad line highlighted", fileNames, Matchers.everyItem(Matchers.endsWith(fileName)));
       }