Mercurial > hg
comparison tests/test-check-code @ 11343:f325db39c8b9
check-code: catch format(), introduced in Python 2.6
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 15 Jun 2010 09:55:59 +0200 |
parents | 920a783e5f91 |
children | 0cae834cdc80 |
comparison
equal
deleted
inserted
replaced
11342:aecabad8dd7a | 11343:f325db39c8b9 |
---|---|
24 | 24 |
25 cat > non-py24.py <<EOF | 25 cat > non-py24.py <<EOF |
26 # Using builtins that does not exist in Python 2.4 | 26 # Using builtins that does not exist in Python 2.4 |
27 if any(): | 27 if any(): |
28 x = all() | 28 x = all() |
29 y = format(x) | |
29 | 30 |
30 # Do not complain about our own definition | 31 # Do not complain about our own definition |
31 def any(x): | 32 def any(x): |
32 pass | 33 pass |
33 EOF | 34 EOF |