Skip to content

Commit

Permalink
(fix) add python NameError support to dynamic polyglot context and ig…
Browse files Browse the repository at this point in the history
…nore test
  • Loading branch information
ake2l committed Jan 19, 2024
1 parent b27c983 commit 34d295b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ synchronized public Value evalScript(Context context, String text, String langua
previousMissingObject = missingObject;
}
}
if (e.getMessage().contains(("NameError: "))) {
else if (e.getMessage().contains(("NameError: "))) {
String missingObject = e.getMessage().replace("NameError: name '", "").replace("' is not defined", "");
if (!Objects.equals(previousMissingObject, missingObject)) {
this.migrateBeneratorContext2GraalVM(context, language, missingObject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void PrepareShopCtx() {
/**
* Demo postgres multi schema.
*/
@Ignore("for manual internal testing")
@Test
public void DemoPostgresMultiSchema() {
assumeTestActive("postgres");
Expand Down

0 comments on commit 34d295b

Please sign in to comment.