summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pow.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-30 19:15:20 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-30 19:15:20 (GMT)
commit702ca4ffcb4630dad3aa2967618777e0f44a1e3c (patch)
tree3b13e210333e86da7b5fd1aa9f71753437fce35c /Lib/test/test_pow.py
parentd256271c552cd021a91732ddc31552ade6cdf79f (diff)
downloadcpython-702ca4ffcb4630dad3aa2967618777e0f44a1e3c.zip
cpython-702ca4ffcb4630dad3aa2967618777e0f44a1e3c.tar.gz
cpython-702ca4ffcb4630dad3aa2967618777e0f44a1e3c.tar.bz2
Revert the previous patch to test_pow.py and move the test to test_unary.py
based on a suggestion from Tim Peters; also make sure that we're really doing exponentiation and not multiplication.
Diffstat (limited to 'Lib/test/test_pow.py')
-rw-r--r--Lib/test/test_pow.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
index 45964b9..51d7484 100644
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -1,8 +1,6 @@
import sys
import test_support
-from test_support import verify
-
def powtest(type):
if type != float:
@@ -79,14 +77,6 @@ powtest(long)
print 'Testing floating point mode...'
powtest(float)
-# Make sure '**' does the right thing; these form a
-# regression test for SourceForge bug #456756.
-#
-verify((-2 ** 2) == -4,
- "expected '-2 ** 2' to be -4, got %s" % (-2 ** 2))
-verify(((-2) ** 2) == 4,
- "expected '(-2) ** 2' to be 4, got %s" % ((-2) ** 2))
-
# Other tests-- not very systematic
print 'The number in both columns should match.'