Author: mattip <[email protected]>
Branch: numpypy-complex2
Changeset: r57757:8a750e1d53b2
Date: 2012-10-03 08:14 +0200
http://bitbucket.org/pypy/pypy/changeset/8a750e1d53b2/

Log:    revert attempt to fix, test issue1275 - test was bogus

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -154,11 +154,6 @@
             expected = eval("0 %s 11" % operator)
             yield self.simple_test, "x = 0 %s 11" % operator, "x", expected
     
-    def test_pow(self):
-        expected = eval("complex(float('inf'), 0.) ** complex(10., 3.0)")
-        yield self.simple_test, \
-           "x = complex(float('inf'), 0.) ** complex(10., 3.0)", "x",  expected
-
     def test_compare(self):
         yield self.st, "x = 2; y = 5; y; h = 1 < x >= 3 < x", "h", False
 
diff --git a/pypy/objspace/std/complexobject.py 
b/pypy/objspace/std/complexobject.py
--- a/pypy/objspace/std/complexobject.py
+++ b/pypy/objspace/std/complexobject.py
@@ -229,8 +229,6 @@
         raise OperationError(space.w_ZeroDivisionError, space.wrap("0.0 to a 
negative or complex power"))
     except OverflowError:
         raise OperationError(space.w_OverflowError, space.wrap("complex 
exponentiation"))
-    except ValueError as e:
-        raise OperationError(space.w_ValueError, space.wrap(e.message))
     return w_p
 
 def neg__Complex(space, w_complex):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to