def METHOD_NAME(cls):
    cls.exp = experiment.Experiment() # create once, not every test
    try:
        cls.tempDir = mkdtemp(dir=Path(__file__).root, prefix='psychopy-tests-app')
    except (PermissionError, OSError):
        # can't write to root on Linux
        cls.tempDir = mkdtemp(prefix='psychopy-tests-app')