MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_Bug_2543

Function test_Bug_2543

lib/matplotlib/tests/test_rcparams.py:123–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122
123def 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
143legend_color_tests = [

Callers

nothing calls this directly

Calls 3

validate_boolFunction · 0.90
deepcopyMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…