Fix #6350: autosummary is confused by an argument having default string value containing a single quote

This commit is contained in:
Takeshi KOMIYA
2019-05-11 17:49:27 +09:00
parent 38aacdffdb
commit 5d640f3c10
3 changed files with 9 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ def test_mangle_signature():
(a, b[, c]) :: (a, b[, c])
(a, b[, cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]) :: (a, b[, ...)
(a, b='c=d, e=f, g=h', c=3) :: (a[, b, c])
(a, b="c=d, e=f, g=h", c=3) :: (a[, b, c])
(a, b='c=d, \\'e=f,\\' g=h', c=3) :: (a[, b, c])
(a, b='c=d, ', e='\\\\' g=h, c=3) :: (a[, b, e, c])
(a, b={'c=d, ': 3, '\\\\': 3}) :: (a[, b])