diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-02-08 21:45:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-02-08 21:45:06 (GMT) |
commit | 15a3095d64e96d0fe7448270f2c5b0bf22f9c4e1 (patch) | |
tree | da112b21f47896fd48d61ac70429cf5001d89f90 /Lib/test/test_grammar.py | |
parent | 896632ea6b2b03815ae948aea05972b4e51247ed (diff) | |
download | cpython-15a3095d64e96d0fe7448270f2c5b0bf22f9c4e1.zip cpython-15a3095d64e96d0fe7448270f2c5b0bf22f9c4e1.tar.gz cpython-15a3095d64e96d0fe7448270f2c5b0bf22f9c4e1.tar.bz2 |
compiler: don't emit SyntaxWarning on const stmt
Issue #26204: the compiler doesn't emit SyntaxWarning warnings anymore when
constant statements are ignored.
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 2d6f5ed..8f8d71c 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -7,7 +7,6 @@ import unittest import sys # testing import * from sys import * -from test import support class TokenTests(unittest.TestCase): @@ -425,11 +424,8 @@ class GrammarTests(unittest.TestCase): # Tested below def test_expr_stmt(self): - msg = 'ignore constant statement' - with support.check_warnings((msg, SyntaxWarning)): - exec("1") - # (exprlist '=')* exprlist + 1 1, 2, 3 x = 1 x = 1, 2, 3 |