about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xbenchtests/scripts/compare_strings.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index efdd9b6d85..b64ed0571d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
+	* benchtests/scripts/compare_strings.py: Avoid display error when
+	running on a text terminal.
+
 	* benchtests/scripts/compare_strings.py (main): Add an
 	optional -base option.
 	(process_results): New argument base_func.
diff --git a/benchtests/scripts/compare_strings.py b/benchtests/scripts/compare_strings.py
index 43e70ebee2..b3c57e2b34 100755
--- a/benchtests/scripts/compare_strings.py
+++ b/benchtests/scripts/compare_strings.py
@@ -21,6 +21,8 @@ Given a string benchmark result file, print a table with comparisons with a
 baseline.  The baseline is the first function, which typically is the builtin
 function.
 """
+import matplotlib as mpl
+mpl.use('Agg')
 
 import sys
 import os