[issue28936] test_global_err_then_warn in test_syntax is no longer valid

Serhiy Storchaka report at bugs.python.org
Sun Dec 11 07:33:10 EST 2016


New submission from Serhiy Storchaka:

Issue27999 invalidated test_global_err_then_warn in Lib/test/test_syntax.py:567. That test was added in issue763201 for testing that SyntaxWarning emitted in symtable_global() doesn't clobber a SyntaxError. In issue27999 a SyntaxWarning was converted to SyntaxError, and the test no longer serves its purpose.

Issue28512 makes tests more strong (it tests the position of SyntaxError), but it can't be applied in 3.6, because _check_error() catches different SyntaxError.

----------
components: Tests
keywords: 3.6regression
messages: 282916
nosy: Jeremy.Hylton, gvanrossum, levkivskyi, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_global_err_then_warn in test_syntax is no longer valid
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28936>
_______________________________________


More information about the Python-bugs-list mailing list