diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-06-21 02:43:55 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-06-21 02:43:55 +0900 |
| commit | b9158b96d261eb6126dbd035aa72c621ddea91e8 (patch) | |
| tree | a34afaaed7ece7a9fee5d74ba4b59f168ec33658 /tests/test_pycode_ast.py | |
| parent | 6918e69600810a4664e53653d6ff0290c3c4a788 (diff) | |
| download | sphinx-git-b9158b96d261eb6126dbd035aa72c621ddea91e8.tar.gz | |
Fix #9364: autodoc: 1-element tuple on the defarg is wrongly rendered
Diffstat (limited to 'tests/test_pycode_ast.py')
| -rw-r--r-- | tests/test_pycode_ast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pycode_ast.py b/tests/test_pycode_ast.py index e80062351..6ae7050da 100644 --- a/tests/test_pycode_ast.py +++ b/tests/test_pycode_ast.py @@ -53,8 +53,9 @@ 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) + ("(1,)", "(1,)"), # Tuple (single item) ]) def test_unparse(source, expected): module = ast.parse(source) |
