359f76af2db4d588ba2a7c99cc91d030da3948cd,lib/matplotlib/tests/test_figure.py,,test_gca,#,141

Before Change



    // the final request for a polar axes will end up creating one
    // with a spec of 111.
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter("always")
        // Changing the projection will throw a warning
        assert fig.gca(polar=True) is not ax3
        assert len(w) == 1
    assert fig.gca(polar=True) is not ax2
    assert fig.gca().get_geometry() == (1, 1, 1)

    fig.sca(ax1)

After Change



    // the final request for a polar axes will end up creating one
    // with a spec of 111.
    with pytest.warns(UserWarning):
        // Changing the projection will throw a warning
        assert fig.gca(polar=True) is not ax3
    assert fig.gca(polar=True) is not ax2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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


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