3e23c4eb8290d5e1b781848a0b8b9682ac709b25,lib/matplotlib/tests/test_contour.py,,test_contour_shape_mismatch_3,#,70

Before Change


    fig = plt.figure()
    ax = fig.add_subplot(111)

    try:
        ax.contour(xg, y, z)
    except TypeError as exc:
        assert exc.args[0] == "Number of dimensions of x and y should match."

    try:
        ax.contour(x, yg, z)
    except TypeError as exc:
        assert exc.args[0] == "Number of dimensions of x and y should match."

After Change



    with pytest.raises(TypeError) as excinfo:
        ax.contour(xg, y, z)
    excinfo.match(r"Number of dimensions of x and y should match.")

    with pytest.raises(TypeError) as excinfo:
        ax.contour(x, yg, z)
    excinfo.match(r"Number of dimensions of x and y should match.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 3e23c4eb8290d5e1b781848a0b8b9682ac709b25
Time: 2017-03-09
Author: ianthomas23@gmail.com
File Name: lib/matplotlib/tests/test_contour.py
Class Name:
Method Name: test_contour_shape_mismatch_3


Project Name: matplotlib/matplotlib
Commit Name: 3e23c4eb8290d5e1b781848a0b8b9682ac709b25
Time: 2017-03-09
Author: ianthomas23@gmail.com
File Name: lib/matplotlib/tests/test_contour.py
Class Name:
Method Name: test_contour_shape_mismatch_2


Project Name: matplotlib/matplotlib
Commit Name: 3e23c4eb8290d5e1b781848a0b8b9682ac709b25
Time: 2017-03-09
Author: ianthomas23@gmail.com
File Name: lib/matplotlib/tests/test_contour.py
Class Name:
Method Name: test_contour_shape_mismatch_1


Project Name: matplotlib/matplotlib
Commit Name: 3e23c4eb8290d5e1b781848a0b8b9682ac709b25
Time: 2017-03-09
Author: ianthomas23@gmail.com
File Name: lib/matplotlib/tests/test_contour.py
Class Name:
Method Name: test_contour_shape_invalid_1


Project Name: matplotlib/matplotlib
Commit Name: 3e23c4eb8290d5e1b781848a0b8b9682ac709b25
Time: 2017-03-09
Author: ianthomas23@gmail.com
File Name: lib/matplotlib/tests/test_contour.py
Class Name:
Method Name: test_contour_shape_invalid_2