TEST: Do not globally change to temporary dir
""" py.test configuration file """
import os
from pathlib import Path
-from tempfile import mkdtemp
from datetime import datetime as dt
import pytest
from templateflow.api import get as get_template
@@ -27,11 +26,6 @@ def _run_interface_mock(objekt, runtime):
return runtime
-def pytest_runtest_setup(item):
- """Change to temporal directory"""
- os.chdir(mkdtemp())
-
-
@pytest.fixture
def reference():
return str(get_template('MNI152Lin', resolution=2, desc=None, suffix='T1w'))
