359f76af2db4d588ba2a7c99cc91d030da3948cd,lib/matplotlib/tests/test_tightlayout.py,,test_badsubplotgrid,#,316

Before Change


    ax1 = plt.subplot2grid((4, 5), (0, 0))
    // this is the bad entry:
    ax5 = plt.subplot2grid((5, 5), (0, 3), colspan=3, rowspan=5)
    with warnings.catch_warnings(record=True) as w:
        plt.tight_layout()
        assert len(w) == 1


def test_collapsed():
    // test that if a call to tight_layout will collapses the axes that
    // it does not get applied:
    fig, ax = plt.subplots(tight_layout=True)

After Change


    ax1 = plt.subplot2grid((4, 5), (0, 0))
    // this is the bad entry:
    ax5 = plt.subplot2grid((5, 5), (0, 3), colspan=3, rowspan=5)
    with pytest.warns(UserWarning):
        plt.tight_layout()


def test_collapsed():
    // test that if a call to tight_layout will collapses the axes that
    // it does not get applied:
    fig, ax = plt.subplots(tight_layout=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: matplotlib/matplotlib
Commit Name: 359f76af2db4d588ba2a7c99cc91d030da3948cd
Time: 2019-03-02
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_tightlayout.py
Class Name:
Method Name: test_badsubplotgrid


Project Name: matplotlib/matplotlib
Commit Name: 359f76af2db4d588ba2a7c99cc91d030da3948cd
Time: 2019-03-02
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_tightlayout.py
Class Name:
Method Name: test_big_decorators_horizontal


Project Name: matplotlib/matplotlib
Commit Name: 359f76af2db4d588ba2a7c99cc91d030da3948cd
Time: 2019-03-02
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_tightlayout.py
Class Name:
Method Name: test_big_decorators_vertical