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:
Benjamin Peterson 2008-11-24 04:19:49 +00:00
parent d8ab1e4751
commit 9e233a545c
3 changed files with 46 additions and 1 deletions

View file

@ -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.