Skip to content

Commit 7f86edd

Browse files
authored
improve tests
1 parent 476243d commit 7f86edd

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

Lib/test/test_syntax.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,6 +3514,14 @@ def test_double_ampersand(self):
35143514
offset=3,
35153515
end_offset=5,
35163516
)
3517+
self._check_error(
3518+
"a & & b",
3519+
"invalid syntax",
3520+
lineno=1,
3521+
end_lineno=1,
3522+
offset=5,
3523+
end_offset=6,
3524+
)
35173525

35183526
def test_double_pipe(self):
35193527
self._check_error(
@@ -3524,18 +3532,6 @@ def test_double_pipe(self):
35243532
offset=3,
35253533
end_offset=5,
35263534
)
3527-
3528-
def test_ampersand_with_space(self):
3529-
self._check_error(
3530-
"a & & b",
3531-
"invalid syntax",
3532-
lineno=1,
3533-
end_lineno=1,
3534-
offset=5,
3535-
end_offset=6,
3536-
)
3537-
3538-
def test_pipe_with_space(self):
35393535
self._check_error(
35403536
"a | | b",
35413537
"invalid syntax",

0 commit comments

Comments
 (0)