-
Notifications
You must be signed in to change notification settings - Fork 9
Add a parallel_threads_limit mark #146
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
Add a parallel_threads_limit mark #146
Conversation
|
Testing notes:
Code: Test invocation: Result: Of course, the test is not marked as single-threaded. The test is running in only one thread, but that is the result of the command line |
|
Thanks! I tweaked things a little so now that message will only trigger if you limit a test to one thread. |
lysnikolaou
left a comment
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! Thanks @ngoldbaum!
Should we open an issue to deprecate the parallel_threads marker?
|
Sure, go ahead. I can probably send a PR in later so we can cut a release for SciPy's benefit. |
There's no rush on our end. We're not blocked on this, and we have a workaround, which is to set Two other things I was thinking about on this PR:
|
I wanted to avoid breaking any existing users of the I considered banning using both decorators but thought a deprecation would handle that case without any more logic here.
Do you have a usecase for |
I agree. I mostly suggested it for API consistency. Imagine someone is doing a mass find-replace around their codebase of |
Fair enough. |
3cdb77a to
c1e0902
Compare
|
Alright, let's merge this. |
Fixes #145.