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 92e502a commit 476243dCopy full SHA for 476243d
1 file changed
Lib/test/test_syntax.py
@@ -3525,6 +3525,26 @@ def test_double_pipe(self):
3525
end_offset=5,
3526
)
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):
3539
3540
+ "a | | b",
3541
3542
3543
3544
3545
3546
3547
3548
3549
class LazyImportRestrictionTestCase(SyntaxErrorTestCase):
3550
"""Test syntax restrictions for lazy imports."""
0 commit comments