From 89f67fb0e05ec792622441f8d96970558e8adbcb Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 19 Sep 2019 09:16:02 +0100 Subject: [PATCH] TEST: Fix invalid escape sequences --- tests/test_scripts/test_atlasq_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_scripts/test_atlasq_query.py b/tests/test_scripts/test_atlasq_query.py index 5b2ab4e9d..14c61b0eb 100644 --- a/tests/test_scripts/test_atlasq_query.py +++ b/tests/test_scripts/test_atlasq_query.py @@ -286,7 +286,7 @@ def _eval_coord_voxel_query( else: exp = [q_type, squery] - _stdout = re.sub('\s+', ' ', stdout).strip() + _stdout = re.sub(r'\s+', ' ', stdout).strip() assert _stdout == ' '.join(exp) if isinstance(a_img, fslatlases.LabelAtlas): @@ -388,7 +388,7 @@ def _eval_mask_query( if expprop > 0: exp.append('{} {:0.4f}'.format(explabel, expprop)) - _stdout = re.sub('\s+', ' ', stdout).strip() + _stdout = re.sub(r'\s+', ' ', stdout).strip() assert _stdout == ' '.join(exp) if isinstance(aimg, fslatlases.LabelAtlas): -- GitLab