def test_pool_get_temp_dir(tmpdir): pool_folder_name = 'test.tmpdir' pool_folder, shared_mem = _get_temp_dir(pool_folder_name, tmpdir.strpath) assert shared_mem is False assert pool_folder == tmpdir.join('test.tmpdir').strpath pool_folder, shared_mem = _get_temp_dir(pool_folder_name, temp_folder=None) if sys.platform.startswith('win'): assert shared_mem is False assert pool_folder.endswith(pool_folder_name)