Skip to content

Commit 6851735

Browse files
sobolevnbswck
andauthored
Update Lib/test/test_syntax.py
Co-authored-by: Bartosz Sławecki <[email protected]>
1 parent 5a2df89 commit 6851735

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_syntax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@
382382
Traceback (most recent call last):
383383
SyntaxError: invalid syntax
384384
385+
# Check incorrect "case" placement with specialized error messages
386+
385387
>>> case "pattern": ...
386388
Traceback (most recent call last):
387389
SyntaxError: case statement must be inside match statement

0 commit comments

Comments
 (0)