Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor syntax tests slightly #45081

Closed
wants to merge 1 commit into from

Conversation

simeonschaub
Copy link
Member

This is pulled out from #44989. Making test_parseerror a macro leads
to much more helpful stacktraces if something fails.

This is pulled out from #44989. Making `test_parseerror` a macro leads
to much more helpful stacktraces if something fails.
@simeonschaub simeonschaub added status:merge me PR is reviewed. Merge when all tests are passing testsystem The unit testing framework and Test stdlib labels Apr 25, 2022
Comment on lines +321 to +322
ex = :(@test_throws ParseError($(esc(msg))) Meta.parse($(esc(str))))
ex.args[2] = __source__
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JeffBezanson this is an example of why we needed #44995, since the ex object here fails to track the top-level line number after all of the code expansion

@vtjnash vtjnash removed the status:merge me PR is reviewed. Merge when all tests are passing label Apr 25, 2022
@KristofferC
Copy link
Sponsor Member

Included in #44989

@DilumAluthge DilumAluthge deleted the sds/refactor_test_parseerror branch August 30, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testsystem The unit testing framework and Test stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants