summaryrefslogtreecommitdiff
path: root/tests/test_pycode_ast.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-06-17 03:02:48 +0900
committerGitHub <noreply@github.com>2022-06-17 03:02:48 +0900
commit103117541823d297560ee003b45cab1ddeab804e (patch)
tree0cc0e9088d835a292aaa4c4dae641c7bf5727070 /tests/test_pycode_ast.py
parent4d7558e968d74f73e11c5460fe095b51a5a9f172 (diff)
parentbed8e94cfc6fdd619d7141f1c918060fca1ae732 (diff)
downloadsphinx-git-103117541823d297560ee003b45cab1ddeab804e.tar.gz
Merge pull request #10551 from AA-Turner/fix-extra-whitespace
Remove extra space from the unparser
Diffstat (limited to 'tests/test_pycode_ast.py')
-rw-r--r--tests/test_pycode_ast.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_pycode_ast.py b/tests/test_pycode_ast.py
index 6143105eb..31018baca 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
@@ -37,14 +37,14 @@ from sphinx.pycode import ast
("1234", "1234"), # Num
("not a", "not a"), # Not
("a or b", "a or b"), # Or
- ("a ** b", "a ** b"), # Pow
+ ("a**b", "a**b"), # Pow
("a >> b", "a >> b"), # RShift
("{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)