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

Fix pytest error #712

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Commits on Apr 4, 2024

  1. Fix pytest error

    When pytest is used with xdist and junitxml, tests are not run in the main
    thread. In addition, signals can only be used in the main thread.
    
    This results in the failure of some tests that attempt to define a signal
    handler.
    
    The signal handler causing the error is not tested, so we simply disable
    the handler if the current thread is not the main thread.
    leocardao committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    77137d1 View commit details
    Browse the repository at this point in the history