Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88ab7d9

Browse files
committed
Merge pull request #6482 from jenshnielsen/1.5.xSkipTestsNumpy1.11
Skip test broken with numpy 1.11
1 parent 57bb9e6 commit 88ab7d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_bbox_tight.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from matplotlib import rcParams
1010
from matplotlib.testing.decorators import image_comparison
11+
from matplotlib.testing.noseclasses import KnownFailureTest
1112
import matplotlib.pyplot as plt
1213
import matplotlib.path as mpath
1314
import matplotlib.patches as mpatches
@@ -90,6 +91,8 @@ def test_bbox_inches_tight_clipping():
9091
remove_text=True, savefig_kwarg={'bbox_inches': 'tight'})
9192
def test_bbox_inches_tight_raster():
9293
"""Test rasterization with tight_layout"""
94+
if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
95+
raise KnownFailureTest("Fall out from a fixed numpy bug")
9396
fig = plt.figure()
9497
ax = fig.add_subplot(111)
9598
ax.plot([1.0, 2.0], rasterized=True)

0 commit comments

Comments
 (0)