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

Skip to content

Commit cddfad2

Browse files
committed
test always MEP27
1 parent ac686e6 commit cddfad2

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ script:
151151
# The number of processes is hardcoded, because using too many causes the
152152
# Travis VM to run out of memory (since so many copies of inkscape and
153153
# ghostscript are running at the same time).
154+
155+
# Load in the new toolbar rc file for tests
154156
- |
155157
if [[ $USENEWTOOLMANAGER == true ]]; then
156158
cp .travis/toolmgr_matplotlibrc matplotlibrc

lib/matplotlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@ def matplotlib_fname():
812812
cwd = os.getcwd()
813813
fname = os.path.join(cwd, 'matplotlibrc')
814814
if os.path.exists(fname):
815-
print('found mplrc file in cwd')
816815
return fname
817816

818817
if 'MATPLOTLIBRC' in os.environ:

lib/matplotlib/testing/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ def setup():
101101
# These settings *must* be hardcoded for running the comparison
102102
# tests and are not necessarily the default values as specified in
103103
# rcsetup.py
104+
use_new_toolmanager = rcParams['toolbar'] == 'toolmanager'
104105
rcdefaults() # Start with all defaults
105106

106107
set_font_settings_for_testing()
108+
109+
if use_new_toolmanager:
110+
rcParams['toolbar'] = 'toolmanager'

0 commit comments

Comments
 (0)