We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476243d commit 7f86eddCopy full SHA for 7f86edd
1 file changed
Lib/test/test_syntax.py
@@ -3514,6 +3514,14 @@ def test_double_ampersand(self):
3514
offset=3,
3515
end_offset=5,
3516
)
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
+ )
3525
3526
def test_double_pipe(self):
3527
self._check_error(
@@ -3524,18 +3532,6 @@ def test_double_pipe(self):
3532
3533
3534
-
3528
- def test_ampersand_with_space(self):
3529
- self._check_error(
3530
- "a & & b",
3531
- "invalid syntax",
- lineno=1,
- end_lineno=1,
- offset=5,
3535
- end_offset=6,
3536
- )
3537
3538
- def test_pipe_with_space(self):
3539
3540
"a | | b",
3541
"invalid syntax",
0 commit comments