Skip to content

Commit 2e5d9f0

Browse files
use raw string in regular expression
1 parent e21cc80 commit 2e5d9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/build_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_easybuilderror(self):
6868
self.assertErrorRegex(EasyBuildError, 'BOOM', raise_easybuilderror, 'BOOM')
6969
logToFile(tmplog, enable=False)
7070

71-
log_re = re.compile("^root ::.* BOOM \(at .*:[0-9]+ in [a-z_]+\)$", re.M)
71+
log_re = re.compile(r"^root ::.* BOOM \(at .*:[0-9]+ in [a-z_]+\)$", re.M)
7272
logtxt = open(tmplog, 'r').read()
7373
self.assertTrue(log_re.match(logtxt), "%s matches %s" % (log_re.pattern, logtxt))
7474

0 commit comments

Comments
 (0)