Skip to content

Fix real_time test for Python 2 #204

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

Closed
wants to merge 1 commit into from

Conversation

timpalpant
Copy link
Contributor

On CPython < 3.5, system calls may be interrupted with EINTR when a signal is received (see PEP-475). In particular, sleep is not retried after SIGALRM, even if requested with SA_RESTART (see: signal(7)).

This updates and re-enables the test_vmprof_real_time test by retrying (if necessary) until the requested time has elapsed. A proper solution for #159 on Python 2 would require a more significant update to not use SIGALRM, and having the tests re-enabled first seemed like a good start.

Ref #159 and #202.

@timpalpant
Copy link
Contributor Author

At least one of the test flakes is due to #191.

@timpalpant
Copy link
Contributor Author

This PR was subsumed into #205

@timpalpant timpalpant closed this Aug 11, 2019
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.

2 participants