Skip to content


Subversion checkout URL

You can clone with
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...
1 parent 4ed4695 commit 7362cdc35d0558f80efedd55b481a1eaddcb02b2 @tacaswell committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/matplotlib/tests/
8 lib/matplotlib/tests/
@@ -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
+ import matplotlib.backends.qt4_compat
+ HAS_QT = True
+except ImportError:
+ HAS_QT = False
+@knownfailureif(not HAS_QT)
def test_fig_close():
# force switch to the Qt4 backend

0 comments on commit 7362cdc

Please sign in to comment.
Something went wrong with that request. Please try again.