Skip to content

resolves #181 Add AssertionError#184

Open
chrimaho wants to merge 2 commits into
NilsJPWerner:masterfrom
chrimaho:master
Open

resolves #181 Add AssertionError#184
chrimaho wants to merge 2 commits into
NilsJPWerner:masterfrom
chrimaho:master

Conversation

@chrimaho

@chrimaho chrimaho commented Apr 5, 2021

Copy link
Copy Markdown

This PR resolves #181.

It adds a second loop to the parseExceptions() function, which searches for a different pattern (/(?<!#.*)assert\s+/), and adds each to the list of exceptions.

The assert loop is run first, because assert's are usually at the beginning of functions, while raise's are usually later.

@NilsJPWerner

NilsJPWerner commented Feb 8, 2022

Copy link
Copy Markdown
Owner

Hi sorry for the very very late reply. This would be a good addition. Could you add tests to this pr? Also can you rebase master to get the github actions to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add assert to Exceptions

2 participants