Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added knownfailureif to test based on if qt4_compat could be imported,

as this should hit either PySide or PyQt4, depending on which is
installed.  (I have faith that the setup code that will make sure that
if only one of them is installed, it defaults to using that one)
  • Loading branch information...
commit 7362cdc35d0558f80efedd55b481a1eaddcb02b2 1 parent 4ed4695
@tacaswell authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/matplotlib/tests/test_backend_qt4.py
View
8 lib/matplotlib/tests/test_backend_qt4.py
@@ -1,10 +1,18 @@
from matplotlib import pyplot as plt
from matplotlib.testing.decorators import cleanup
+from matplotlib.testing.decorators import knownfailureif
from matplotlib._pylab_helpers import Gcf
import copy
+try:
+ import matplotlib.backends.qt4_compat
+ HAS_QT = True
+except ImportError:
+ HAS_QT = False
+
@cleanup
+@knownfailureif(not HAS_QT)
def test_fig_close():
# force switch to the Qt4 backend
plt.switch_backend('Qt4Agg')
Please sign in to comment.
Something went wrong with that request. Please try again.