Skip to content

Commit

Permalink
Attempt to fix some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Aug 30, 2013
1 parent 4512c55 commit e38bb70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/matplotlib/tests/test_bbox_tight.py
@@ -1,4 +1,4 @@
from matplotlib import rcParams, rcParamsDefault
from matplotlib import rcParams
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt
import matplotlib.path as mpath
Expand All @@ -10,8 +10,6 @@
savefig_kwarg=dict(bbox_inches='tight'), tol=15)
def test_bbox_inches_tight():
"Test that a figure saved using bbox_inches'tight' is clipped right"
rcParams.update(rcParamsDefault)

data = [[ 66386, 174296, 75131, 577908, 32015],
[ 58230, 381139, 78045, 99308, 160454],
[ 89135, 80552, 152558, 497981, 603535],
Expand Down
6 changes: 1 addition & 5 deletions lib/matplotlib/tests/test_colorbar.py
Expand Up @@ -3,7 +3,7 @@
import matplotlib
from matplotlib.testing.decorators import image_comparison, knownfailureif
import matplotlib.pyplot as plt
from matplotlib import rcParams, rcParamsDefault
from matplotlib import rcParams
from matplotlib.colors import BoundaryNorm
from matplotlib.cm import get_cmap
from matplotlib.colorbar import ColorbarBase
Expand Down Expand Up @@ -98,8 +98,6 @@ def _colorbar_extension_length(spacing):
extensions=['png'])
def test_colorbar_extension_shape():
'''Test rectangular colorbar extensions.'''
# Use default params so matplotlibrc doesn't cause the test to fail.
rcParams.update(rcParamsDefault)
# Create figures for uniform and proportionally spaced colorbars.
fig1 = _colorbar_extension_shape('uniform')
fig2 = _colorbar_extension_shape('proportional')
Expand All @@ -110,8 +108,6 @@ def test_colorbar_extension_shape():
extensions=['png'])
def test_colorbar_extension_length():
'''Test variable length colorbar extensions.'''
# Use default params so matplotlibrc doesn't cause the test to fail.
rcParams.update(rcParamsDefault)
# Create figures for uniform and proportionally spaced colorbars.
fig1 = _colorbar_extension_length('uniform')
fig2 = _colorbar_extension_length('proportional')
Expand Down

0 comments on commit e38bb70

Please sign in to comment.