File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ environment:
19
19
# theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit,
20
20
# one for 64bit because we construct envs anyway. But using one for the
21
21
# right python version is hopefully making it fast due to package caching.
22
- - PYTHON_VERSION : " 2.7"
23
- CONDA_INSTALL_LOCN : " C:\\ Miniconda-x64"
24
- TEST_ALL : " no"
25
22
- PYTHON_VERSION : " 3.5"
26
23
CONDA_INSTALL_LOCN : " C:\\ Miniconda35-x64"
27
24
TEST_ALL : " no"
28
25
- PYTHON_VERSION : " 3.6"
29
26
CONDA_INSTALL_LOCN : " C:\\ Miniconda36-x64"
30
27
TEST_ALL : " no"
28
+ - PYTHON_VERSION : " 2.7"
29
+ CONDA_INSTALL_LOCN : " C:\\ Miniconda-x64"
30
+ TEST_ALL : " no"
31
31
32
32
# We always use a 64-bit machine, but can build x86 distributions
33
33
# with the PYTHON_ARCH variable
@@ -53,6 +53,7 @@ install:
53
53
- conda config --set show_channel_urls yes
54
54
- conda config --prepend channels conda-forge
55
55
# this is now the downloaded conda...
56
+ - activate
56
57
- conda info -a
57
58
58
59
# For building, use a new environment which only includes the requirements for mpl
Original file line number Diff line number Diff line change @@ -366,8 +366,11 @@ def test_subplots_shareax_loglabels():
366
366
367
367
def test_savefig ():
368
368
fig = plt .figure ()
369
- msg = "savefig() takes 2 positional arguments but 3 were given"
370
- with pytest .raises (TypeError , message = msg ):
369
+ if sys .version_info [0 ] == 3 :
370
+ msg = r"savefig\(\) takes 2 positional arguments but 3 were given"
371
+ else :
372
+ msg = r"savefig\(\) takes exactly 2 arguments \(3 given\)"
373
+ with pytest .raises (TypeError , match = msg ):
371
374
fig .savefig ("fname1.png" , "fname2.png" )
372
375
373
376
You can’t perform that action at this time.
0 commit comments