-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fixed @test return value on Error (#31495) #36501
Fixed @test return value on Error (#31495) #36501
Conversation
Thanks for fixing this and providing a test, but I am not sure why you renamed the function arguments in unrelated code, it will make them inconsistent with the rest of the file. |
I changed the names in methods of https://github.com/JuliaLang/julia/blob/master/stdlib/Test/src/Test.jl#L669-L677 I failed to read other parts of the file, but now I see that What do you think is the way to go? Should I rename them back to t, leave it as it is, change the documentation or change all occurrences of |
Generally I would suggest going for minimal changes in a PR like this. |
Reverted the renaming. Can I do anything else to improve this PR? |
I think it is fine, you just have to wait for someone with commit rights to the repo to review it. Please give it some time, and ping here if it does not happen within a few days. |
bump |
Thanks for the fix and the bump! |
This is directly mergeable and closes the bug #31495 by copying the two-liner proposed there by @tpapp , thus I do not feel comfortable prefixing RFC.
But this is also my first contribution as a boy scout and it would be great to get some feedback, especially because adding the missing tests was nontrivial and is not without issues:
record(::DefaultTestSet, ::T <: Result)
methods, but not for@test
itself.I think this is acceptable when a test system tests itself, but I would be happy to fix it. I just don't know how to start.