8000 Tst up coverage by tacaswell · Pull Request #5621 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Tst up coverage #5621

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 4 commits into from
Dec 5, 2015
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
Next Next commit
STY: import matplotlib.lines as mlines
  • Loading branch information
tacaswell committed Dec 5, 2015
commit 4d0e2c5d148f64e17f434f48b1953742e1d838a1
9 changes: 5 additions & 4 deletions lib/matplotlib/tests/test_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

from matplotlib.externals import six

import matplotlib.lines as mlines
import nose
from nose.tools import assert_true, assert_raises
from timeit import repeat
import numpy as np
import matplotlib as mpl

import matplotlib.pyplot as plt
from matplotlib.testing.decorators import cleanup, image_comparison
import sys
Expand Down Expand Up @@ -38,7 +39,7 @@ def test_invisible_Line_rendering():
ax = plt.subplot(111)

# Create a "big" Line instance:
l = mpl.lines.Line2D(x,y)
l = mlines.Line2D(x,y)
l.set_visible(False)
# but don't add it to the Axis instance `ax`

Expand Down Expand Up @@ -112,7 +113,7 @@ def test_valid_linestyles():
raise nose.SkipTest("assert_raises as context manager "
"not supported with Python < 2.7")

line = mpl.lines.Line2D([], [])
line = mlines.Line2D([], [])
with assert_raises(ValueError):
line.set_linestyle('aardvark')

Expand All @@ -128,7 +129,7 @@ def test_set_line_coll_dash_image():

def test_nan_is_sorted():
# Exercises issue from PR #2744 (NaN throwing warning in _is_sorted)
line = mpl.lines.Line2D([],[])
line = mlines.Line2D([],[])
assert_true(line._is_sorted(np.array([1,2,3])))
assert_true(not line._is_sorted(np.array([1,np.nan,3])))

Expand Down
0