Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a00680e

Browse files
committed
removing redundant to_list conversion
1 parent 0d7bd7c commit a00680e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,6 @@ def test_bool_autolevel():
719719

720720
def test_all_nan():
721721
x = np.array([[np.nan, np.nan], [np.nan, np.nan]])
722-
assert_array_almost_equal(plt.contour(x).levels.tolist(),
722+
assert_array_almost_equal(plt.contour(x).levels,
723723
[-1e-13, -7.5e-14, -5e-14, -2.4e-14, 0.0,
724724
2.4e-14, 5e-14, 7.5e-14, 1e-13])

0 commit comments

Comments
 (0)