Skip to content

Conversation

@P-EB
Copy link
Contributor

@P-EB P-EB commented Feb 7, 2018

Closes #381

@katrinabrock katrinabrock requested a review from ptthiem February 10, 2018 17:32
@ptthiem
Copy link
Collaborator

ptthiem commented Feb 12, 2018

I wanted to hand test something, just to see if I'm being paranoid. Once, I do that, I think this will be fine. I'll have time today,

@P-EB
Copy link
Contributor Author

P-EB commented Feb 12, 2018

Thanks

Copy link
Collaborator

@ptthiem ptthiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do nose2 --plugin nose2.plugins.mp -N this will throw an AttributeError. I would say the check should be < 0, so that the default works and adjust the error message. I tried to update this PR directly. I probably should write a test case for this scenario. Approved once the changes I made pass

@procs.setter
def procs(self, value):
"""Setter for procs property"""
if value <= 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do nose2 --plugin nose2.plugins.mp -N this will throw an AttributeError. I would say this should be < 0, so that the default works. And probably adjust the error message. I probably should write a test case for this scenario, we can just file a bug for that. Otherwise, I think the patch is fine.

@P-EB
Copy link
Contributor Author

P-EB commented Feb 14, 2018

@ptthiem Indeed, my bad for the error. :)

@katrinabrock katrinabrock mentioned this pull request Feb 18, 2018
@katrinabrock
Copy link
Collaborator

commit merged in #389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants