Skip to content

Tweak coverage #8036

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 10 commits into from
Feb 20, 2017
Prev Previous commit
Next Next commit
MNT: More testing cleanups for coverage.
Remove unused code and restructure to eliminate uncovered lines.
  • Loading branch information
dopplershift committed Feb 7, 2017
commit af56c132c534c7f44c4fafcbe9c5df1723e96d1a
10 changes: 0 additions & 10 deletions lib/matplotlib/tests/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,6 @@ def check_segments(coll, positions, linelength, lineoffset, orientation):
assert_equal(segment[1, pos2], positions[i])


def check_allprop(values, target):
'''
check to make sure all values match the given target

note: this is not a test, it is used by tests
'''
for value in values:
assert_equal(value, target)


def check_allprop_array(values, target):
'''
check to make sure all values match the given target if arrays
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,8 @@ def test_triplot_return():
triang = mtri.Triangulation(
[0.0, 1.0, 0.0, 1.0], [0.0, 0.0, 1.0, 1.0],
triangles=[[0, 1, 3], [3, 2, 0]])
if ax.triplot(triang, "b-") is None:
raise AssertionError("triplot should return the artist it adds")
assert ax.triplot(triang, "b-") is not None, \
'triplot should return the artist it adds'


def test_trirefiner_fortran_contiguous_triangles():
Expand Down
4 changes: 1 addition & 3 deletions lib/matplotlib/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ def test_CheckButtons():
check.set_active(0)
assert check.get_status() == [False, False, True]

def clicked_function():
pass
cid = check.on_clicked(clicked_function)
cid = check.on_clicked(lambda: None)
check.disconnect(cid)


Expand Down