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

Do not create thread if tests_per_worker==1 #2

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

andrea-segalini
Copy link
Owner

Avoid creating a thread when there is one worker. This allows benefitting from signal-based communication with the test workers when threads are not used (e.g., for timeouts as in solves kevlened#96)

import pickle
import sys

self.errors.put(('name', pickle.dumps(sys.exc_info())))
Copy link
Collaborator

Choose a reason for hiding this comment

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

We seem to have lost a name variable here - should that be passed in?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Oh right. Done

Avoid creating a thread when there is one worker. This allows
benefitting from signal-based communication with the test workers when
threads are not used (e.g., for timeouts as in solves
kevlened#96)
@andrea-segalini andrea-segalini merged commit c6f5d05 into master Feb 13, 2024
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.

3 participants