-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix tests on 1.8 #13
fix tests on 1.8 #13
Conversation
Seems like the CI workflow got disabled |
test/robust_pmap.jl
Outdated
if VERSION < v"1.8-" | ||
@test_throws ErrorException robust_pmap(throw_isodd, input) | ||
else | ||
@test_throws "Error" robust_pmap(throw_isodd, input) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we are testing for presents of the word Error then we might as well just
if VERSION < v"1.8-" | |
@test_throws ErrorException robust_pmap(throw_isodd, input) | |
else | |
@test_throws "Error" robust_pmap(throw_isodd, input) | |
end | |
@test_throws Exception robust_pmap(throw_isodd, input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, just since the string message is Error
here... could change it to ErrorException("Error123")
and test for "Error123"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
Thanks |
Thanks for maintaining parallelism! I use a modified version of |
In 1.8,
asyncmap
throws CapturedExceptions so the stacktrace doesn't get dropped (JuliaLang/julia#42105). This doesn't break pmap retries (because they get unwrapped) but it does change the exception getting thrown, so it breaks the tests here.This PR uses the feature from JuliaLang/julia#41888 to test against the error text on 1.8 (since the exception type is just CapturedException).