mirror of
https://github.com/python/cpython.git
synced 2025-08-16 23:01:34 +00:00
Merged revisions 67365 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r67365 | benjamin.peterson | 2008-11-23 22:09:03 -0600 (Sun, 23 Nov 2008) | 1 line #4396 make the parser module correctly validate the with syntax ........
This commit is contained in:
parent
d8ab1e4751
commit
9e233a545c
3 changed files with 46 additions and 1 deletions
|
@ -196,6 +196,10 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
|
|||
def test_assert(self):
|
||||
self.check_suite("assert alo < ahi and blo < bhi\n")
|
||||
|
||||
def test_with(self):
|
||||
self.check_suite("with open('x'): pass\n")
|
||||
self.check_suite("with open('x') as f: pass\n")
|
||||
|
||||
def test_position(self):
|
||||
# An absolutely minimal test of position information. Better
|
||||
# tests would be a big project.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue