summaryrefslogtreecommitdiff
path: root/testsuite/E22.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/E22.py')
-rw-r--r--testsuite/E22.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/E22.py b/testsuite/E22.py
index 56af307..9d8efda 100644
--- a/testsuite/E22.py
+++ b/testsuite/E22.py
@@ -89,7 +89,7 @@ c = (a+ b)*(a - b)
#:
#: E226
-z = 2**30
+z = 2//30
#: E226 E226
c = (a+b) * (a-b)
#: E226
@@ -103,8 +103,8 @@ hypot2 = x*x + y*y
#: E226
c = (a + b)*(a - b)
#: E226
-def squares(n):
- return (i**2 for i in range(n))
+def halves(n):
+ return (i//2 for i in range(n))
#: E227
_1kB = _1MB>>10
#: E227
@@ -129,7 +129,8 @@ submitted += 1
x = x * 2 - 1
hypot2 = x * x + y * y
c = (a + b) * (a - b)
-_1MB = 2 ** 20
+_1MiB = 2 ** 20
+_1TiB = 2**30
foo(bar, key='word', *args, **kwargs)
baz(**kwargs)
negative = -1
@@ -140,7 +141,6 @@ func2(lambda a, b=h[:], c=0: (a, b, c))
if not -5 < x < +5:
print >>sys.stderr, "x is out of range."
print >> sys.stdout, "x is an integer."
-z = 2 ** 30
x = x / 2 - 1
if alpha[:-i]:
@@ -148,7 +148,7 @@ if alpha[:-i]:
def squares(n):
- return (i ** 2 for i in range(n))
+ return (i**2 for i in range(n))
ENG_PREFIXES = {
-6: "\u03bc", # Greek letter mu