mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-109485: Further improve test_future_stmt
tests (#109486)
Add assertSyntaxError() which run tests with an additional docstring and without docstring, and checks for the error message.
This commit is contained in:
parent
59f32a785f
commit
94c95d42a3
11 changed files with 106 additions and 115 deletions
3
Lib/test/test_future_stmt/badsyntax_future.py
Normal file
3
Lib/test/test_future_stmt/badsyntax_future.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
"spam, bar, blah"
|
||||
from __future__ import print_function
|
Loading…
Add table
Add a link
Reference in a new issue