Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 726495e

Browse files
committed
TST : added test that keymap values are all lists
Closes matplotlib#497
1 parent d8fb745 commit 726495e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,9 @@ def test_validators():
247247
yield _validation_test_helper, validator, arg, target
248248
for arg, error_type in validator_dict['fail']:
249249
yield _validation_fail_helper, validator, arg, error_type
250+
251+
252+
def test_keymaps():
253+
key_list = [k for k in mpl.rcParams if 'keymap' in k]
254+
for k in key_list:
255+
assert(isinstance(mpl.rcParams[k], list))

0 commit comments

Comments
 (0)