Skip to content

Disable SMP tools during testing #288

Description

@banesullivan

With the addition of enable_smp_tools in pyvista, we should add a fixture like this to disable it automatically.

# conftest.py                                                                                                                                  
import pytest                                                                                                                                  
import pyvista as pv                      
                                                                                                                                               
@pytest.fixture(scope='session', autouse=True)                     
def _disable_smp_in_tests():              
    pv.enable_smp_tools(backend='sequential', n_threads=1) 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions