Skip to content

Commit 3f9b5fc

Browse files
committed
Swallow more parsing errors.
Let's see if we can still go through (similar to b3c28a8).
1 parent 0a57ed2 commit 3f9b5fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

com.ibm.wala.cast.python.jython3/source/com/ibm/wala/cast/python/parser/PythonParser.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,9 @@ public String getMsg() {
23872387
}
23882388
});
23892389
});
2390-
throw new TranslatorToCAst.Error(warnings);
2390+
2391+
// Log the parsing errors (best-effort).
2392+
warnings.forEach(w -> LOGGER.warning(() -> "Encountered parsing problem: " + w));
23912393
}
23922394

23932395
try {

com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestTensorflow2Model.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2803,7 +2803,7 @@ public void testModule67()
28032803
}
28042804

28052805
/** Test https://github.com/wala/ML/issues/205. */
2806-
@Test(expected = java.lang.AssertionError.class)
2806+
@Test
28072807
public void testModule68()
28082808
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
28092809
test(
@@ -2817,7 +2817,7 @@ public void testModule68()
28172817
}
28182818

28192819
/** Test https://github.com/wala/ML/issues/205. */
2820-
@Test(expected = java.lang.IllegalStateException.class)
2820+
@Test
28212821
public void testModule69()
28222822
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
28232823
test(

0 commit comments

Comments
 (0)