commit | e7a4bb554edb72fc6619d23241d59162d06f249a | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Feb 19 08:30:15 2019 +0200 |
committer | GitHub <noreply@github.com> | Tue Feb 19 08:30:15 2019 +0200 |
tree | ba74116b687307c63725d6bed28fce0e46cade90 | |
parent | ee0f927bd8dba805a04963dbec1ad49fe830b842 [diff] |
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.