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

Skip to content

Commit 98b9a8d

Browse files
committed
add some tests for '_validate_linestyle' with non Unicode arguments
1 parent 017a88f commit 98b9a8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ def generate_validator_testcases(valid):
342342
('', ''), (' ', ' '),
343343
('None', 'none'), ('none', 'none'),
344344
('DoTtEd', 'dotted'),
345+
(b'dotted', 'dotted'), # binary string
346+
('dotted'.encode('ascii'), 'dotted'), # ASCII string
345347
(['1.23', '4.56'], (None, [1.23, 4.56])),
346348
([1.23, 456], (None, [1.23, 456.0])),
347349
([1, 2, 3, 4], (None, [1.0, 2.0, 3.0, 4.0])),

0 commit comments

Comments
 (0)