diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-23 09:10:44 +0300 |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-23 09:10:44 +0300 |
| commit | f315c1c01676bfabb5b1c6628642668f1ef436a6 (patch) | |
| tree | 078327f0ab7ab7c2a7ac347d9cb4669e98a6d201 /Lib/test/test_grammar.py | |
| parent | 2f07a66dedb6f69cbe601f7ca2c3fca66898ffe3 (diff) | |
| download | cpython-git-f315c1c01676bfabb5b1c6628642668f1ef436a6.tar.gz | |
Issue #24687: Plug refleak on SyntaxError in function parameters annotations.
Diffstat (limited to 'Lib/test/test_grammar.py')
| -rw-r--r-- | Lib/test/test_grammar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index ca6b5d0c38..9b41df1ad8 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -534,7 +534,8 @@ class GrammarTests(unittest.TestCase): # Not allowed at class scope check_syntax_error(self, "class foo:yield 1") check_syntax_error(self, "class foo:yield from ()") - + # Check annotation refleak on SyntaxError + check_syntax_error(self, "def g(a:(yield)): pass") def test_raise(self): # 'raise' test [',' test] |
