Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf56c13

Browse files
committed
MNT: More testing cleanups for coverage.
Remove unused code and restructure to eliminate uncovered lines.
1 parentca858b7 commitaf56c13

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

‎lib/matplotlib/tests/test_collections.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,6 @@ def check_segments(coll, positions, linelength, lineoffset, orientation):
383383
assert_equal(segment[1,pos2],positions[i])
384384

385385

386-
defcheck_allprop(values,target):
387-
'''
388-
check to make sure all values match the given target
389-
390-
note: this is not a test, it is used by tests
391-
'''
392-
forvalueinvalues:
393-
assert_equal(value,target)
394-
395-
396386
defcheck_allprop_array(values,target):
397387
'''
398388
check to make sure all values match the given target if arrays

‎lib/matplotlib/tests/test_triangulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ def test_triplot_return():
966966
triang=mtri.Triangulation(
967967
[0.0,1.0,0.0,1.0], [0.0,0.0,1.0,1.0],
968968
triangles=[[0,1,3], [3,2,0]])
969-
ifax.triplot(triang,"b-")isNone:
970-
raiseAssertionError("triplot should return the artist it adds")
969+
assertax.triplot(triang,"b-")isnotNone, \
970+
'triplot should return the artist it adds'
971971

972972

973973
deftest_trirefiner_fortran_contiguous_triangles():

‎lib/matplotlib/tests/test_widgets.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ def test_CheckButtons():
261261
check.set_active(0)
262262
assertcheck.get_status()== [False,False,True]
263263

264-
defclicked_function():
265-
pass
266-
cid=check.on_clicked(clicked_function)
264+
cid=check.on_clicked(lambda:None)
267265
check.disconnect(cid)
268266

269267

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp