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

Skip to content

Commit 1d2095b

Browse files
committed
test always MEP27
1 parent fb004e0 commit 1d2095b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ script:
148148
# The number of processes is hardcoded, because using too many causes the
149149
# Travis VM to run out of memory (since so many copies of inkscape and
150150
# ghostscript are running at the same time).
151+
152+
# Load in the new toolbar rc file for tests
151153
- |
152154
if [[ $USENEWTOOLMANAGER == true ]]; then
153155
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)