diff --git a/src/aiida/manage/tests/pytest_fixtures.py b/src/aiida/manage/tests/pytest_fixtures.py index 6c5d04d3b..8cc44dc60 100644 --- a/src/aiida/manage/tests/pytest_fixtures.py +++ b/src/aiida/manage/tests/pytest_fixtures.py @@ -173,7 +173,7 @@ def aiida_instance( if configuration.CONFIG is not None: reset = True current_config = configuration.CONFIG - current_config_path = current_config.dirpath + current_config_path = pathlib.Path(current_config.dirpath) current_profile = configuration.get_profile() current_path_variable = os.environ.get(settings.DEFAULT_AIIDA_PATH_VARIABLE, None)