diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-07-09 13:25:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 13:25:10 (GMT) |
commit | 96a6a6d42be272a27562d98549bbffc0d1854669 (patch) | |
tree | 9c4fc12729aa2accce4ca953a6431acec87cf542 /Lib/test/test_codeop.py | |
parent | 61bb24a270d15106decb1c7983bf4c2831671a75 (diff) | |
download | cpython-96a6a6d42be272a27562d98549bbffc0d1854669.zip cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.gz cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
Diffstat (limited to 'Lib/test/test_codeop.py')
-rw-r--r-- | Lib/test/test_codeop.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py index 45cb1a7..6e821df6 100644 --- a/Lib/test/test_codeop.py +++ b/Lib/test/test_codeop.py @@ -5,6 +5,7 @@ import sys import unittest from test import support +from test.support import warnings_helper from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT import io @@ -305,7 +306,7 @@ class CodeopTests(unittest.TestCase): def test_warning(self): # Test that the warning is only returned once. - with support.check_warnings((".*literal", SyntaxWarning)) as w: + with warnings_helper.check_warnings((".*literal", SyntaxWarning)) as w: compile_command("0 is 0") self.assertEqual(len(w.warnings), 1) |