Skip to content

Commit 43b3835

Browse files
committed
use raw string for error pattern in test_templates
1 parent b426aaa commit 43b3835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/easyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5172,7 +5172,7 @@ def test_templates(self):
51725172
ec = EasyConfig(test_ec)
51735173

51745174
self.assertEqual(ec.get_ref('description'), "name: %(name)s, version: %(version)s, pyshortver: %(pyshortver)s")
5175-
error_pattern = "Failed to resolve all templates in.* %\(pyshortver\)s.* using template dictionary:"
5175+
error_pattern = r"Failed to resolve all templates in.* %\(pyshortver\)s.* using template dictionary:"
51765176
self.assertErrorRegex(EasyBuildError, error_pattern, ec.__getitem__, 'description')
51775177

51785178
# EasyBuild can be configured to allow unresolved templates

0 commit comments

Comments
 (0)