8000 MNT: Make sure AppVeyor fails if tests fail by dopplershift · Pull Request #9773 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MNT: Make sure AppVeyor fails if tests fail #9773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 23, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MNT: Fix test failures from string representations
  • Loading branch information
dopplershift committed Nov 17, 2017
commit 84a1c0d9c81e822ff684959ff6297170b3b3a3bb
5 changes: 4 additions & 1 deletion lib/matplotlib/tests/test_preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import re

import numpy as np
import pytest

from matplotlib import _preprocess_data
Expand Down Expand Up @@ -165,7 +166,9 @@ def test_function_call_with_pandas_data(func):
"""test with pandas dataframe -> label comes from data["col"].name """
pd = pytest.importorskip('pandas')

data = pd.DataFrame({"a": [1, 2], "b": [8, 9], "w": ["NOT", "NOT"]})
data = pd.DataFrame({"a": np.array([1, 2], dtype=np.int32),
"b": np.array([8, 9], dtype=np.int32),
"w": ["NOT", "NOT"]})

assert (func(None, "a", "b", data=data) ==
"x: [1, 2], y: [8, 9], ls: x, w: xyz, label: b")
Expand Down
0