]> granicus.if.org Git - python/commitdiff
Fix SF bug [ #450245 ] Error in parsing future stmts
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 20 Aug 2001 20:33:42 +0000 (20:33 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 20 Aug 2001 20:33:42 +0000 (20:33 +0000)
Add test case to cover multiple future statements on separate lines of
a module.

Lib/test/output/test_future
Lib/test/regrtest.py
Lib/test/test_future.py

index 4631489a8827d33343ad6b84774028af52d0e798..127517d07161000c447c4b215fa9dcd183d4f8aa 100644 (file)
@@ -1,6 +1,7 @@
 test_future
 6
 6
+2
 SyntaxError badsyntax_future3 3
 SyntaxError badsyntax_future4 3
 SyntaxError badsyntax_future5 4
index 4c7b4bee398c1ee758b7cb41cfa03f104ff188e0..6a4b7fdd493a7e8d5a912202d933935c4289c3d4 100755 (executable)
@@ -214,6 +214,7 @@ NOTTESTS = [
     'test_b2',
     'test_future1',
     'test_future2',
+    'test_future3',
     ]
 
 def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
index ba0763b7c7106addde83b525c81a1beb741127b8..764584c10a0888674b0ae7e832c1dbe6a1855fa1 100644 (file)
@@ -17,6 +17,9 @@ import test_future1
 unload('test_future2')
 import test_future2
 
+unload('test_future3')
+import test_future3
+
 # The remaining tests should fail
 try:
     import badsyntax_future3