Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f06313 commit a88f5ddCopy full SHA for a88f5dd
lib/matplotlib/tests/test_rcparams.py
@@ -103,6 +103,19 @@ def test_RcParams_class():
103
assert ['font.family'] == list(six.iterkeys(rc.find_all('family')))
104
105
106
+def test_rcparams_update():
107
+ rc = mpl.RcParams({'figure.figsize': (3.5, 42)})
108
+ bad_dict = {'figure.figsize': (3.5, 42, 1)}
109
+ # make sure validation happens on input
110
+ with assert_raises(ValueError):
111
+ rc.update(bad_dict)
112
+
113
114
+def test_rcparams_init():
115
116
+ mpl.RcParams({'figure.figsize': (3.5, 42, 1)})
117
118
119
def test_Bug_2543():
120
# Test that it possible to add all values to itself / deepcopy
121
# This was not possible because validate_bool_maybe_none did not
0 commit comments