Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision 4ef08f76a55ae935c3aff3e628469cb6618b8ca8)
+++ tests/pybin/tools.py	(revision eb67b47635ef70468037882e93204c4624478aec)
@@ -238,5 +238,5 @@
 # helper function to check if a files contains only a specific string
 def file_contains_only(file, text) :
-	with open(file) as f:
+	with open(file, encoding="latin-1") as f: # use latin-1 so all chars mean something.
 		ff = f.read().strip()
 		result = ff == text.strip()
Index: tests/test.py
===================================================================
--- tests/test.py	(revision 4ef08f76a55ae935c3aff3e628469cb6618b8ca8)
+++ tests/test.py	(revision eb67b47635ef70468037882e93204c4624478aec)
@@ -194,5 +194,5 @@
 		if success(retcode):
 			if settings.generating :
-				# if we are ounly generating the output we still need to check that the test actually exists
+				# if we are only generating the output we still need to check that the test actually exists
 				if no_rule(out_file, test.target()) :
 					retcode = 1
