Update of /cvsroot/jython/bugtests
In directory usw-pr-cvs1:/tmp/cvs-serv20675
Added Files:
test329.py test329s1.py test329s2.py test329s3.py
Log Message:
Test for [ #475445 ] incompatibility with python
--- NEW FILE: test329.py ---
"""
[ #475445 ] incompatibility with python
Check comment handling when reading source from stdin.
"""
import support
support.runJava("org.python.util.jython -S < test329s1.py > test329.out")
support.runJava("org.python.util.jython -S < test329s2.py > test329.out")
support.runJava("org.python.util.jython -S < test329s3.py > test329.out")
--- NEW FILE: test329s1.py ---
import sys
for t in range(10):
# a comment
print t; sys.exit(0)
sys.exit(22)
--- NEW FILE: test329s2.py ---
import sys
for t in range(10):
# a comment
print t; sys.exit(0)
sys.exit(22)
--- NEW FILE: test329s3.py ---
import sys
for t in range(10):
a = 1 # a comment
print t; sys.exit(0)
sys.exit(22)
|