From 4f46846c99643d3a62ce04b496c2858c981efcd2 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Mon, 31 Aug 2015 20:24:46 +0300 Subject: [PATCH] test fix --- .../jetbrains/env/python/testing/PythonUnitTestingTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java b/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java index c81772187191..33b89821ce19 100644 --- a/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java +++ b/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java @@ -144,10 +144,10 @@ public class PythonUnitTestingTest extends PyEnvTestCase { @NotNull final String stderr, @NotNull final String all) { final List 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))); }