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

Skip to content

Commit 55ed86e

Browse files
committed
TST: Test with pandas installed on 2.7
Also make a unit test more specific, as it triggered a warning which wasn't intended in that case. The warning is tested a few lines later...
1 parent e838a25 commit 55ed86e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
2727
- BUILD_DOCS=false
2828
- NUMPY=numpy
29+
- PANDAS=
2930
- NPROC=2
3031
- TEST_ARGS=--no-pep8
3132

@@ -36,7 +37,7 @@ matrix:
3637
- python: 2.6
3738
env: NUMPY=numpy==1.6 MOCK=mock==1.0.1
3839
- python: 2.7
39-
env: MOCK=mock
40+
env: MOCK=mock PANDAS=pandas
4041
- python: 3.3
4142
- python: 3.4
4243
- python: 2.7
@@ -62,7 +63,7 @@ install:
6263
pip install --upgrade setuptools
6364
# Install only from travis wheelhouse
6465
- if [ -z "$PRE" ]; then
65-
wheelhouse_pip_install python-dateutil $NUMPY pyparsing pillow sphinx!=1.3.0;
66+
wheelhouse_pip_install python-dateutil $NUMPY $PANDAS pyparsing pillow sphinx!=1.3.0;
6667
else
6768
pip install $PRE python-dateutil $NUMPY pyparsing pillow sphinx!=1.3.0;
6869
fi

lib/matplotlib/tests/test_labeled_data_unpacking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ def funcy(ax, *args, **kwargs):
402402
return "{args} | {kwargs}".format(args=args, kwargs=kwargs)
403403

404404
# the normal case...
405-
data = {"x": "X", "y": "Y"}
406-
assert_equal(funcy(None, "x", "y", data=data),
405+
data = {"x": "X", "y1": "Y"}
406+
assert_equal(funcy(None, "x", "y1", data=data),
407407
"('X', 'Y') | {}")
408-
assert_equal(funcy(None, "x", "y", "c", data=data),
408+
assert_equal(funcy(None, "x", "y1", "c", data=data),
409409
"('X', 'Y', 'c') | {}")
410410

411411
# no arbitrary long args with data

0 commit comments

Comments
 (0)