Mercurial > cpython-lru_cache-weakref
annotate Lib/test/badsyntax_future8.py @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +0000 |
| parents | 47eaa38b29cb |
| children | 4cdf21a0dbbc |
| rev | line source |
|---|---|
|
31184
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
1 """This is a test""" |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
2 |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
3 from __future__ import * |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
4 |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
5 def f(x): |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
6 def g(y): |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
7 return x + y |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
8 return g |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
9 |
|
47eaa38b29cb
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz <nnorwitz@gmail.com>
parents:
diff
changeset
|
10 print f(2)(4) |
