Skip to content

Commit b20cf20

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

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
assert path1 is not path1_copy
363363
assert path1.vertices is not path1_copy.vertices
364-
assert np.all(path1.vertices == path1_copy.vertices)
364+
assert_array_equal(path1.vertices, path1_copy.vertices)
365365
assert path1.readonly
366366
assert not path1_copy.readonly
367367
assert path2 is not path2_copy
368368
assert path2.vertices is not path2_copy.vertices
369-
assert np.all(path2.vertices == path2_copy.vertices)
369+
assert_array_equal(path2.vertices, path2_copy.vertices)
370370
assert path2.codes is not path2_copy.codes
371-
assert all(path2.codes == path2_copy.codes)
371+
assert_array_equal(path2.codes, path2_copy.codes)
372372
assert path2.readonly
373373
assert not path2_copy.readonly
374374

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy