diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-06-30 13:46:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 13:46:31 (GMT) |
commit | 0c4f0f3b29d84063700217dcf90ad6860ed71c70 (patch) | |
tree | 22c7c745a13327858287f8ea010794ba51af7be9 /Lib/test/test_grammar.py | |
parent | 3ddc634cd5469550c0c2dc5a6051a70739995699 (diff) | |
download | cpython-0c4f0f3b29d84063700217dcf90ad6860ed71c70.zip cpython-0c4f0f3b29d84063700217dcf90ad6860ed71c70.tar.gz cpython-0c4f0f3b29d84063700217dcf90ad6860ed71c70.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21169)
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index ef7d1a1..a51452e 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -1,7 +1,8 @@ # Python test set -- part 1, grammar. # This just tests whether the parser accepts them all. -from test.support import check_syntax_error, check_syntax_warning +from test.support import check_syntax_error +from test.support.warnings_helper import check_syntax_warning import inspect import unittest import sys @@ -276,7 +277,8 @@ class CNS: class GrammarTests(unittest.TestCase): - from test.support import check_syntax_error, check_syntax_warning + from test.support import check_syntax_error + from test.support.warnings_helper import check_syntax_warning # single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE # XXX can't test in a script -- this rule is only used when interactive |