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

psutil, expect and setlocale #80

Open
jayvdb opened this issue Apr 14, 2019 · 1 comment
Open

psutil, expect and setlocale #80

jayvdb opened this issue Apr 14, 2019 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Apr 14, 2019

I am packaging this for openSUSE, and noticed that it was using ps. I noticed because that isnt in the standard rpmbuild image, so I got file not found errors in the execs. I wonder if it would be possible to use the Python package psutil instead, as that would make the tests a bit more independent of the host environment.

Also it is using expect. pexpect is another alternative.

Then this package can declare all of its test dependencies, and packagers will have an effortless time ;-)

Then the remaining problem I am facing is the test suite uses setlocale, which isnt working in an rpmbuild environment, causing the tests to fail like this:

   30s] > sh: warning: setlocale: LC_ALL: cannot change locale (en_US.ascii)
[   30s] 81a88

Working area at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-better-exceptions

@Qix-
Copy link
Owner

Qix- commented Apr 14, 2019

Feel free to open a PR if it fixes it :) would love to have less of a dependency on running commands such as that.

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

No branches or pull requests

2 participants