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

Skip to content

Commit f125bdf

Browse files
committed
Merge branch 'v2.x' into master
2 parents e489005 + a869cc0 commit f125bdf

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ install:
112112
pip install --upgrade setuptools
113113
- |
114114
# Install dependencies from pypi
115-
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS pep8 cycler coveralls coverage
115+
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS pep8 cycler coveralls coverage $MOCK
116116
pip install $PRE -r doc-requirements.txt
117117
118118
# Install nose from a build which has partial

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def validate_animation_writer_path(p):
10021002
'Sand', 'Script MT', 'Felipa', 'cursive'],
10031003
validate_stringlist],
10041004
'font.fantasy': [['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact'
1005-
'Western', 'Humor Sans', 'fantasy', 'xkcd'],
1005+
'Western', 'Humor Sans', 'xkcd', 'fantasy'],
10061006
validate_stringlist],
10071007
'font.monospace': [['DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
10081008
'Computer Modern Typewriter',

lib/matplotlib/tests/test_image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,12 @@ def test_jpeg_alpha():
511511

512512
# If this fails, there will be only one color (all black). If this
513513
# is working, we should have all 256 shades of grey represented.
514-
print("num colors: ", len(image.getcolors(256)))
515-
assert len(image.getcolors(256)) >= 175 and len(image.getcolors(256)) <= 185
514+
num_colors = len(image.getcolors(256))
515+
assert 175 <= num_colors <= 185, 'num colors: %d' % (num_colors, )
516516
# The fully transparent part should be red, not white or black
517517
# or anything else
518-
print("corner pixel: ", image.getpixel((0, 0)))
519-
assert image.getpixel((0, 0)) == (254, 0, 0)
518+
corner_pixel = image.getpixel((0, 0))
519+
assert corner_pixel == (254, 0, 0), "corner pixel: %r" % (corner_pixel, )
520520

521521

522522
@cleanup

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ backend : $TEMPLATE_BACKEND
206206
#font.serif : DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
207207
#font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
208208
#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive
209-
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, fantasy, xkcd
209+
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy
210210
#font.monospace : DejaVu Sans Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
211211

212212
### TEXT

0 commit comments

Comments
 (0)