Skip to content

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