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

test_cpu_count fails on SunOS: no such file /proc/cpuinfo #620

Closed
grobian opened this issue Apr 17, 2015 · 3 comments
Closed

test_cpu_count fails on SunOS: no such file /proc/cpuinfo #620

grobian opened this issue Apr 17, 2015 · 3 comments

Comments

@grobian
Copy link
Contributor

grobian commented Apr 17, 2015

The test obviously fails, could try to use nproc from gnu-coreutils, but more likely on Solaris /usr/sbin/psrinfo (-pv) should be used to get the number of physical and virtual processors.

@grobian
Copy link
Contributor Author

grobian commented Apr 17, 2015

Infinidat@5c28b2b
I thought about the alternative if LINUX: but I wonder what the intention of the test was, it looks like it tries to avoid a false positive, question is if that can happen on non-Linux systems (and how to detect it).

@giampaolo
Copy link
Owner

Yeah, the real intent of that test should be to run on Linux only so the if condition should be:

if LINUX and os.path.exists("/proc/cpuinfo"):
     ...

@giampaolo
Copy link
Owner

This is supposed to have been fixed by #610.

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

No branches or pull requests

2 participants