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

Appearance settings

Commit fd04f2d

Browse filesBrowse files
committed
TST: cbook reshape2d empty list
1 parent 3f6df2e commit fd04f2d
Copy full SHA for fd04f2d

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎lib/matplotlib/tests/test_cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cbook.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,11 @@ def test_flatiter():
495495
def test_reshape2d():
496496
class dummy():
497497
pass
498+
xnew = cbook._reshape_2D([], 'x')
499+
assert np.shape(xnew) == (1, 0)
500+
498501
x = [dummy() for j in range(5)]
502+
499503
xnew = cbook._reshape_2D(x, 'x')
500504
assert np.shape(xnew) == (1, 5)
501505

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.