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

Skip to content

Commit ee36d95

Browse files
committed
Make test more precise
1 parent 2b7189e commit ee36d95

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/tests/test_legend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ def test_plot_single_input_multiple_label():
732732

733733

734734
def test_plot_multiple_label_incorrect_length_exception():
735-
# check that exception is raised for
736-
# iterable label with incorrect length
737-
with pytest.raises(Exception):
735+
# check that excepton is raised if multiple labels
736+
# are given, but number of on labels != number of lines
737+
with pytest.raises(ValueError):
738738
x = [1, 2, 5]
739739
y = [[2, 4, 3], [4, 7, 1], [3, 9, 2]]
740740
label = ['one', 'two']

0 commit comments

Comments
 (0)