Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision 7b3a6e63ee6eed4ce07650549824ebb9065b01d2)
+++ tests/pybin/tools.py	(revision 202ad7213dd90adde71c8d41deb86d0a8093bd95)
@@ -36,4 +36,8 @@
 
 def is_ascii(fname):
+	if settings.dry_run:
+		print("is_ascii: %s" % fname)
+		return True
+
 	if not os.path.isfile(fname):
 		return False
@@ -132,4 +136,8 @@
 # helper function to replace patterns in a file
 def file_replace(fname, pat, s_after):
+	if settings.dry_run:
+		print("replacing '%s' with '%s' in %s" % (pat, s_after, fname))
+		return
+
 	file = fileinput.FileInput(fname, inplace=True, backup='.bak')
 	for line in file:
