summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pow.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-12-23 15:36:42 (GMT)
committerFred Drake <fdrake@acm.org>1999-12-23 15:36:42 (GMT)
commitdb1bd5c230e2ed71b95939e61a09271887b03b31 (patch)
treed663825929482bb9f166b49900bd7e0a78a4d72c /Lib/test/test_pow.py
parentb06007a3ba0dcc3bfdc50131a0729dd21882a4ea (diff)
downloadcpython-db1bd5c230e2ed71b95939e61a09271887b03b31.zip
cpython-db1bd5c230e2ed71b95939e61a09271887b03b31.tar.gz
cpython-db1bd5c230e2ed71b95939e61a09271887b03b31.tar.bz2
Revise tests to support str(<long int object>) not appending "L".
Diffstat (limited to 'Lib/test/test_pow.py')
-rw-r--r--Lib/test/test_pow.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
index ec17d53..6e3dda7 100644
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -56,20 +56,20 @@ powtest(float)
# Other tests-- not very systematic
print 'The number in both columns should match.'
-print pow(3,3) % 8, pow(3,3,8)
-print pow(3,3) % -8, pow(3,3,-8)
-print pow(3,2) % -2, pow(3,2,-2)
-print pow(-3,3) % 8, pow(-3,3,8)
-print pow(-3,3) % -8, pow(-3,3,-8)
-print pow(5,2) % -8, pow(5,2,-8)
+print `pow(3,3) % 8`, `pow(3,3,8)`
+print `pow(3,3) % -8`, `pow(3,3,-8)`
+print `pow(3,2) % -2`, `pow(3,2,-2)`
+print `pow(-3,3) % 8`, `pow(-3,3,8)`
+print `pow(-3,3) % -8`, `pow(-3,3,-8)`
+print `pow(5,2) % -8`, `pow(5,2,-8)`
print
-print pow(3L,3L) % 8, pow(3L,3L,8)
-print pow(3L,3L) % -8, pow(3L,3L,-8)
-print pow(3L,2) % -2, pow(3L,2,-2)
-print pow(-3L,3L) % 8, pow(-3L,3L,8)
-print pow(-3L,3L) % -8, pow(-3L,3L,-8)
-print pow(5L,2) % -8, pow(5L,2,-8)
+print `pow(3L,3L) % 8`, `pow(3L,3L,8)`
+print `pow(3L,3L) % -8`, `pow(3L,3L,-8)`
+print `pow(3L,2) % -2`, `pow(3L,2,-2)`
+print `pow(-3L,3L) % 8`, `pow(-3L,3L,8)`
+print `pow(-3L,3L) % -8`, `pow(-3L,3L,-8)`
+print `pow(5L,2) % -8`, `pow(5L,2,-8)`
print
print pow(3.0,3.0) % 8, pow(3.0,3.0,8)