diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-10-03 12:00:33 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-10-03 12:01:20 +0900 |
commit | 785f4d695cfca0eeb537c92166808bc9f187d8c0 (patch) | |
tree | 5cc8d93c36558aa92a62dfc44832f3c8e37e7d89 /tests/test_pycode_ast.py | |
parent | 1ff1f3cf5b2f3402074d84395a0374fee8ac2a9e (diff) | |
download | sphinx-git-785f4d695cfca0eeb537c92166808bc9f187d8c0.tar.gz |
Fix #7964: autodoc: Tuple in default value is wrongly rendered
This implements tuple literal support to sphinx.pycode.ast.unparse().
Diffstat (limited to 'tests/test_pycode_ast.py')
-rw-r--r-- | tests/test_pycode_ast.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pycode_ast.py b/tests/test_pycode_ast.py index 9b12d24d5..32a784b74 100644 --- a/tests/test_pycode_ast.py +++ b/tests/test_pycode_ast.py @@ -53,7 +53,7 @@ from sphinx.pycode import ast ("+ a", "+ a"), # UAdd ("- 1", "- 1"), # UnaryOp ("- a", "- a"), # USub - ("(1, 2, 3)", "1, 2, 3"), # Tuple + ("(1, 2, 3)", "(1, 2, 3)"), # Tuple ("()", "()"), # Tuple (empty) ]) def test_unparse(source, expected): |