diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-14 09:46:12 +0100 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-14 09:54:01 +0100 |
commit | b58ef001ac2337a0fa40411a80ee5611d97ef0f3 (patch) | |
tree | 6b55444a22212a0c988c1d74c56e2580c4e4f29e /tests | |
parent | 873d9f6fdababb96f0763f538e85921f7d332b70 (diff) | |
download | sphinx-git-b58ef001ac2337a0fa40411a80ee5611d97ef0f3.tar.gz |
Remove extra space from the unparser
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pycode_ast.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_pycode_ast.py b/tests/test_pycode_ast.py index 6143105eb..2d33a5629 100644 --- a/tests/test_pycode_ast.py +++ b/tests/test_pycode_ast.py @@ -25,7 +25,7 @@ from sphinx.pycode import ast ("...", "..."), # Ellipsis ("a // b", "a // b"), # FloorDiv ("Tuple[int, int]", "Tuple[int, int]"), # Index, Subscript - ("~ 1", "~ 1"), # Invert + ("~1", "~1"), # Invert ("lambda x, y: x + y", "lambda x, y: ..."), # Lambda ("[1, 2, 3]", "[1, 2, 3]"), # List @@ -42,9 +42,9 @@ from sphinx.pycode import ast ("{1, 2, 3}", "{1, 2, 3}"), # Set ("a - b", "a - b"), # Sub ("'str'", "'str'"), # Str - ("+ a", "+ a"), # UAdd - ("- 1", "- 1"), # UnaryOp - ("- a", "- a"), # USub + ("+a", "+a"), # UAdd + ("-1", "-1"), # UnaryOp + ("-a", "-a"), # USub ("(1, 2, 3)", "(1, 2, 3)"), # Tuple ("()", "()"), # Tuple (empty) ("(1,)", "(1,)"), # Tuple (single item) |