Do not add empty exceptions in test

Messages and exceptions both lead to warn(), while only exceptions should be stored
This commit is contained in:
Ilya.Kazakevich
2016-07-05 21:47:12 +03:00
parent ff9b00efd7
commit 1e6b71c007
+6 -2
View File
@@ -347,7 +347,9 @@ public abstract class PyEnvTestCase {
@Override
public void processWarn(final String message, final Throwable t, @NotNull final org.apache.log4j.Logger logger) {
myExceptions.add(t);
if (t != null) {
myExceptions.add(t);
}
}
@Override
@@ -355,7 +357,9 @@ public abstract class PyEnvTestCase {
final Throwable t,
final String[] details,
@NotNull final org.apache.log4j.Logger logger) {
myExceptions.add(t);
if (t != null) {
myExceptions.add(t);
}
}
}
}