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

Skip to content

Fix some test warnings #7336

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 9 commits into from
Oct 27, 2016
Prev Previous commit
Next Next commit
Remove unnecessary print in middle of test.
  • Loading branch information
QuLogic committed Oct 25, 2016
commit 0abb51f5ed9b88b414e8bf694babd6e3feda1ed3
5 changes: 2 additions & 3 deletions lib/matplotlib/tests/test_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,18 @@ def test_contour_shape_mismatch_4():
try:
ax.contour(b, g, z)
except TypeError as exc:
print(exc.args[0])
assert re.match(
r'Shape of x does not match that of z: ' +
r'found \(9L?, 9L?\) instead of \(9L?, 10L?\)\.',
exc.args[0]) is not None
exc.args[0]) is not None, exc.args[0]

try:
ax.contour(g, b, z)
except TypeError as exc:
assert re.match(
r'Shape of y does not match that of z: ' +
r'found \(9L?, 9L?\) instead of \(9L?, 10L?\)\.',
exc.args[0]) is not None
exc.args[0]) is not None, exc.args[0]


@cleanup
Expand Down