Skip to content

Commit

Permalink
Merge commit 'e4160a3bc16570c9927b78a74ec70789d59acccb' into try-stru…
Browse files Browse the repository at this point in the history
…ct-error
  • Loading branch information
PwtKCL committed Nov 26, 2024
2 parents 3a6b127 + e4160a3 commit d368636
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions tests/cypress/e2e/paste-python.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ finally:
cy.wait(500);
cy.get("body").type("{backspace}");
}
checkDownloadedCodeEquals(tryCode);
// Can't test try by itself because it is now an error state (via TigerPython):
// checkDownloadedCodeEquals(tryCode);
};

testCode([exceptCode("")]);
Expand All @@ -493,9 +494,6 @@ finally:
testCode([exceptCode("Exception", "e")]);
testCode([exceptCode("Exception", "e"), elseCode, finallyCode]);
testCode([exceptCode("CustomError"), exceptCode("Exception", "e"), elseCode, finallyCode]);
testCode([elseCode]);
// This is the potentially tricky case as it can be confused with an if/else at first look:
testCode([elseCode, finallyCode]);
});
});

Expand Down

0 comments on commit d368636

Please sign in to comment.