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 fixes #681

Merged
merged 5 commits into from Sep 6, 2015
Merged

Test fixes #681

merged 5 commits into from Sep 6, 2015

Conversation

wiggin15
Copy link
Collaborator

@wiggin15 wiggin15 commented Sep 6, 2015

Various fixes to tests that failed on our environments. I described in the commits what needed fixing.

Arnon Yaari added 4 commits September 6, 2015 01:06
Replacing psutil.cpu_count affects other tests.
Calling the "parent function" will test this better.
…sible

Some environments don't support running 'python' outside of its directory.
There is already a test that compiles an executable for testing - so we use
that code if possible, and fall back to copying the Python executable only if
gcc isn't available.

This also allows test_prog_w_funky_name to be tested on Winows, where
moving the executable is ok (at least for default Python distributions).
In POSIX systems, process name from psinfo is limited to 15 chars.
There can be a unicode character cut off in position 15 and then
Py_BuildValue will fail to parse the name as UTF-8 (Python 3 only).
This needs to be addressed but for now avoid it in the tests

@classmethod
def tearDownClass(cls):
if not APPVEYOR:
Copy link
Owner

Choose a reason for hiding this comment

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

mmm this was needed because on APPVEYOR sometimes you get "can't delete file used by another process" errors - I would revert this change

@wiggin15
Copy link
Collaborator Author

wiggin15 commented Sep 6, 2015

I reversed the change you asked.

giampaolo added a commit that referenced this pull request Sep 6, 2015
@giampaolo giampaolo merged commit 608abb1 into giampaolo:master Sep 6, 2015
@wiggin15 wiggin15 deleted the test_fixes branch October 16, 2017 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants