Remove newline
diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py
index 4b261c1..b564c24 100644
--- a/test/shaping/hb_test_tools.py
+++ b/test/shaping/hb_test_tools.py
@@ -188,6 +188,8 @@
 					line = sys.stdin.readline ()
 					if not len (line):
 						break
+					if line[-1] == '\n':
+						line = line[:-1]
 					print callback (line)
 			else:
 				args = sys.argv[1:]