()
| 121 | |
| 122 | |
| 123 | def test_Bug_2543(): |
| 124 | # Test that it possible to add all values to itself / deepcopy |
| 125 | # https://github.com/matplotlib/matplotlib/issues/2543 |
| 126 | # We filter warnings at this stage since a number of them are raised |
| 127 | # for deprecated rcparams as they should. We don't want these in the |
| 128 | # printed in the test suite. |
| 129 | with _api.suppress_matplotlib_deprecation_warning(): |
| 130 | with mpl.rc_context(): |
| 131 | _copy = mpl.rcParams.copy() |
| 132 | for key in _copy: |
| 133 | mpl.rcParams[key] = _copy[key] |
| 134 | with mpl.rc_context(): |
| 135 | copy.deepcopy(mpl.rcParams) |
| 136 | with pytest.raises(ValueError): |
| 137 | validate_bool(None) |
| 138 | with pytest.raises(ValueError): |
| 139 | with mpl.rc_context(): |
| 140 | mpl.rcParams['svg.fonttype'] = True |
| 141 | |
| 142 | |
| 143 | legend_color_tests = [ |
nothing calls this directly
no test coverage detected
searching dependent graphs…