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

Skip to content

Commit e38bb70

Browse files
committed
Attempt to fix some failing tests
1 parent 4512c55 commit e38bb70

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/matplotlib/tests/test_bbox_tight.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from matplotlib import rcParams, rcParamsDefault
1+
from matplotlib import rcParams
22
from matplotlib.testing.decorators import image_comparison
33
import matplotlib.pyplot as plt
44
import matplotlib.path as mpath
@@ -10,8 +10,6 @@
1010
savefig_kwarg=dict(bbox_inches='tight'), tol=15)
1111
def test_bbox_inches_tight():
1212
"Test that a figure saved using bbox_inches'tight' is clipped right"
13-
rcParams.update(rcParamsDefault)
14-
1513
data = [[ 66386, 174296, 75131, 577908, 32015],
1614
[ 58230, 381139, 78045, 99308, 160454],
1715
[ 89135, 80552, 152558, 497981, 603535],

lib/matplotlib/tests/test_colorbar.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import matplotlib
44
from matplotlib.testing.decorators import image_comparison, knownfailureif
55
import matplotlib.pyplot as plt
6-
from matplotlib import rcParams, rcParamsDefault
6+
from matplotlib import rcParams
77
from matplotlib.colors import BoundaryNorm
88
from matplotlib.cm import get_cmap
99
from matplotlib.colorbar import ColorbarBase
@@ -98,8 +98,6 @@ def _colorbar_extension_length(spacing):
9898
extensions=['png'])
9999
def test_colorbar_extension_shape():
100100
'''Test rectangular colorbar extensions.'''
101-
# Use default params so matplotlibrc doesn't cause the test to fail.
102-
rcParams.update(rcParamsDefault)
103101
# Create figures for uniform and proportionally spaced colorbars.
104102
fig1 = _colorbar_extension_shape('uniform')
105103
fig2 = _colorbar_extension_shape('proportional')
@@ -110,8 +108,6 @@ def test_colorbar_extension_shape():
110108
extensions=['png'])
111109
def test_colorbar_extension_length():
112110
'''Test variable length colorbar extensions.'''
113-
# Use default params so matplotlibrc doesn't cause the test to fail.
114-
rcParams.update(rcParamsDefault)
115111
# Create figures for uniform and proportionally spaced colorbars.
116112
fig1 = _colorbar_extension_length('uniform')
117113
fig2 = _colorbar_extension_length('proportional')

0 commit comments

Comments
 (0)