From b9039ecb4c747660313722f710f8140e540390c8 2013-08-04 00:16:10 From: Paul Ivanov Date: 2013-08-04 00:16:10 Subject: [PATCH] fix #3889 --- diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index 806139c..81ee691 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -40,6 +40,8 @@ backends = {'tk': 'TkAgg', # most part it's just a reverse of the above dict, but we also need to add a # few others that map to the same GUI manually: backend2gui = dict(zip(backends.values(), backends.keys())) +# Our tests expect backend2gui to just return 'qt' +backend2gui['Qt4Agg'] = 'qt' # In the reverse mapping, there are a few extra valid matplotlib backends that # map to the same GUI support backend2gui['GTK'] = backend2gui['GTKCairo'] = 'gtk'