#4396 make the parser module correctly validate the with syntax
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 94b6113..1069606 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -196,6 +196,10 @@
     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.