diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-02-19 06:30:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 06:30:15 (GMT) |
commit | e7a4bb554edb72fc6619d23241d59162d06f249a (patch) | |
tree | ba74116b687307c63725d6bed28fce0e46cade90 /Misc | |
parent | ee0f927bd8dba805a04963dbec1ad49fe830b842 (diff) | |
download | cpython-e7a4bb554edb72fc6619d23241d59162d06f249a.zip cpython-e7a4bb554edb72fc6619d23241d59162d06f249a.tar.gz cpython-e7a4bb554edb72fc6619d23241d59162d06f249a.tar.bz2 |
bpo-35798: Add test.support.check_syntax_warning(). (#11895)
It checks that a SyntaxWarning is raised when compile specified
statement, that it is raised only once, that it is converted to
a SyntaxError when raised as exception, and that both warning and
exception objects have corresponding attributes.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-02-16-15-19-31.bpo-35798.JF16MP.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-02-16-15-19-31.bpo-35798.JF16MP.rst b/Misc/NEWS.d/next/Tests/2019-02-16-15-19-31.bpo-35798.JF16MP.rst new file mode 100644 index 0000000..e320466 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-02-16-15-19-31.bpo-35798.JF16MP.rst @@ -0,0 +1 @@ +Added :func:`test.support.check_syntax_warning`. |