Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision c5c123f63963ca0018deea205deb1482ee47b1b0)
+++ tests/pybin/tools.py	(revision 195d1d89c805c47fc486b2b8cf91431ffa3d0689)
@@ -120,5 +120,5 @@
 		return (False, "'file EXPECT' failed with code {} '{}'".format(code, err))
 
-	match = re.search(".*: (.*)", out)
+	match = re.search(r".*: (.*)", out)
 
 	if not match:
@@ -306,5 +306,5 @@
 		sys.exit(1)
 
-	re_jobs = re.search("--jobserver-(auth|fds)", out)
+	re_jobs = re.search(r"--jobserver-(auth|fds)", out)
 	if not re_jobs:
 		print("ERROR: cannot find Makefile jobserver version", file=sys.stderr)
Index: tests/test.py
===================================================================
--- tests/test.py	(revision c5c123f63963ca0018deea205deb1482ee47b1b0)
+++ tests/test.py	(revision 195d1d89c805c47fc486b2b8cf91431ffa3d0689)
@@ -23,5 +23,5 @@
 
 	def match_test(path):
-		match = re.search("^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$" % settings.SRCDIR, path)
+		match = re.search(r'^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$' % settings.SRCDIR, path)
 		if match :
 			test = Test()
@@ -359,5 +359,5 @@
 				sys.exit(1)
 
-			print(' '.join(re.findall('([^\s]+\.cfa)', out)), end=' ')
+			print(' '.join(re.findall(r'([^\s]+\.cfa)', out)), end=' ')
 
 		print('')
