1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 49b50e7

switch to py3 behavior

  • Participants
  • Parent commits c0a21ff
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/cmath/test/test_cmath.py

View file
         import math
         z = eval("-0j")
         assert z == -0j
-        assert math.copysign(1., z.real) == 1.
-        assert math.copysign(1., z.imag) == -1.
+        assert math.copysign(1., z.real) == -1.0
+        assert math.copysign(1., z.imag) == -1.0
 
     def test_sqrt(self):
         import cmath, math