summaryrefslogtreecommitdiff
path: root/tests/test_pycode_ast.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-03 12:00:33 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-03 12:01:20 +0900
commit785f4d695cfca0eeb537c92166808bc9f187d8c0 (patch)
tree5cc8d93c36558aa92a62dfc44832f3c8e37e7d89 /tests/test_pycode_ast.py
parent1ff1f3cf5b2f3402074d84395a0374fee8ac2a9e (diff)
downloadsphinx-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.py2
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):