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

Commitb20cf20

Browse files
jkseppanQuLogic
andcommitted
Compare arrays with assert_array_equal
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parentc7edce3 commitb20cf20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/matplotlib/tests/test_path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,14 @@ def test_path_deepcopy():
361361
path2_copy=path2.deepcopy()
362362
assertpath1isnotpath1_copy
363363
assertpath1.verticesisnotpath1_copy.vertices
364-
assertnp.all(path1.vertices==path1_copy.vertices)
364+
assert_array_equal(path1.vertices,path1_copy.vertices)
365365
assertpath1.readonly
366366
assertnotpath1_copy.readonly
367367
assertpath2isnotpath2_copy
368368
assertpath2.verticesisnotpath2_copy.vertices
369-
assertnp.all(path2.vertices==path2_copy.vertices)
369+
assert_array_equal(path2.vertices,path2_copy.vertices)
370370
assertpath2.codesisnotpath2_copy.codes
371-
assertall(path2.codes==path2_copy.codes)
371+
assert_array_equal(path2.codes,path2_copy.codes)
372372
assertpath2.readonly
373373
assertnotpath2_copy.readonly
374374

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp