summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 014a30a..65d18e4 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -898,6 +898,17 @@ leading to spurious errors.
Traceback (most recent call last):
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?
+
+Missing parens after function definition
+
+ >>> def f:
+ Traceback (most recent call last):
+ SyntaxError: expected '('
+
+ >>> async def f:
+ Traceback (most recent call last):
+ SyntaxError: expected '('
+
Custom error messages for try blocks that are not followed by except/finally
>>> try: