-
Notifications
You must be signed in to change notification settings - Fork 17
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 problem where everything would be suppressed forever #18
Conversation
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.
LGTM
test/runtests.jl
Outdated
@@ -50,19 +52,8 @@ end == 42 | |||
@test_throws ErrorException @suppress begin | |||
println("This string doesn't get printed!") | |||
warn("This warning is ignored.") | |||
error("Remember that errors are still printed!") | |||
error("Remember that errors are still printed!") # they aren't; @test_throws suppresses them |
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.
should this string be changed then to something like "errors would normally get printed but are caught here by @test_throws"
?
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.
Changed
failure on 0.5 looks unrelated, and maybe it's OK to drop 0.5 support... Not sure what's up with the 0.7 failure - can anyone repro it locally? |
…occured in the suppressed block
Yup, happens to me locally too. Here it is parsed out of the messy log:
All the other tests pass and the bug is unrelated, so I think this PR is good. |
We should also test on Windows, see: #19 I don't know if someone setup Travis or if it just worked after the ownership transfer, in case this was automatic, we'd need to setup a JuliaIO account for AppVeyor. |
@iamed2 I have enabled AppVeyor, could you please submit a commit with any minor change, to a comment perhaps, just to trigger the Windows CI builds? |
AppVeyor nightly tests fail because the Windows binaries don't exist (known issue) |
This PR fixes a problem where everything would be suppressed forever if an error occurred in the suppressed block. The tests were actually failing (the tests themselves were incorrect) but no one noticed because the failures were suppressed 🙃
Also changed
@async
to@schedule
as there is no enclosing@sync
.