-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Allow control of --bounds-check in Pkg.test #2668
Allow control of --bounds-check in Pkg.test #2668
Conversation
Instead of adding another keyword argument to the
|
This would be a significant (breaking?) change, as the parent process is likely run by default with
Users can currently do this, but it's not possible to set it to the default, as that requires omitting If Base was changed to accept |
Regardless of what we end up doing in this PR, I do think it would be nice for Julia to accept |
Yeah and it would be nice to get that into 1.7 |
Closing in favor of JuliaLang/julia#41551 then? In any case, if you need special behavior like this you can always start your own process from within the |
I don't understand why this is not possible. In case you want it as the default you just omit it in |
By default I mean julia default, which respects
Yes but that makes managing test dependencies a pain, as there's no convenient way to merge a test Project and the parent in the same way that the sandbox does it, AFAIK |
You just launch julia with the env Pkg gave |
I understand that. But again, why isn't |
or am I misunderstanding your suggestion?
The env Pkg gave |
Yes, I think so. Just don't add the whole |
Are you factoring in that it's currently hardcoded before Line 1374 in cb9441f
|
No, that would make it harder indeed 😆. Having an |
Yeah. I'm happy for that PR to be the one |
Forcing bounds checking to be on can severely slow down some test code, so it would be useful to be able to allow bounds checking to be the julia default automatic that observes in-code declarations (set here via
check_bounds = nothing
which omits the--check-bounds
option entirely).There may be some use cases where forcing it off entirely may be desired too (
check_bounds = false
), so all three are supported