##// END OF EJS Templates
Fix for skipping tests when matplotlib not available.
Thomas Kluyver -
Show More
@@ -65,8 +65,8 b' class RunnerTestCase(unittest.TestCase):'
65 65 self.assert_(mismatch==0,'Number of mismatched lines: %s' %
66 66 mismatch)
67 67
68 @decorators.skipif(pylab_not_importable, "Likely a run without X.")
69 68 @decorators.skipif_not_matplotlib
69 @decorators.skipif(pylab_not_importable, "Likely a run without X.")
70 70 def test_pylab_import_all_enabled(self):
71 71 "Verify that plot is available when pylab_import_all = True"
72 72 source = """
@@ -91,8 +91,8 b' Out\\[6\\]: True'
91 91 runner = irunner.IPythonRunner(out=self.out)
92 92 self._test_runner(runner,source,output)
93 93
94 @decorators.skipif(pylab_not_importable, "Likely a run without X.")
95 94 @decorators.skipif_not_matplotlib
95 @decorators.skipif(pylab_not_importable, "Likely a run without X.")
96 96 def test_pylab_import_all_disabled(self):
97 97 "Verify that plot is not available when pylab_import_all = False"
98 98 source = """
General Comments 0
You need to be logged in to leave comments. Login now