Skip to content
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

RE: recent testing of this code #1035

Merged
merged 1 commit into from Nov 27, 2020
Merged

RE: recent testing of this code #1035

merged 1 commit into from Nov 27, 2020

Conversation

jalasker
Copy link
Contributor

When running setup.py test on my laptop's VM, I ran into an edge case for test_util.py in test_utils_default_nproc. When using a single processor machine (or presumably if you request one processor on NERSC, etc) the test fails.

This pull request fixes that test failure by ensuring that in the case there is one CPU, the automatic calculation involving multiprocessing.cpu_count()//2 is floored at 1 rather than 0.

Copy link
Contributor

@sbailey sbailey left a comment

Choose a reason for hiding this comment

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

Looks good, thanks. OK to merge when Travis finishes.

@jalasker jalasker merged commit d545b3e into master Nov 27, 2020
@jalasker jalasker deleted the single-proc-test branch November 27, 2020 17:33
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.

None yet

2 participants