annotate Lib/test/badsyntax_future7.py @ 49258:25f809123df6 legacy-trunk

Issue #3925: Ignores shutil.rmtree error on cygwin too. Reviewed by Benjamin Peterson.
author Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
date Sun, 21 Sep 2008 20:48:41 +0000
parents 47eaa38b29cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17558
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
1 """This is a test"""
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
2
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
3 from __future__ import nested_scopes; import string; from __future__ import \
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
4 nested_scopes
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
5
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
6 def f(x):
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
7 def g(y):
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
8 return x + y
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
9 return g
d06bbb8c493a Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
10
31184
47eaa38b29cb SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents: 17558
diff changeset
11 result = f(2)(4)