#17427: x==y while hash(x)!=hash(y) with SchemeMorphism_point_projective_field
-------------------------------------+-------------------------------------
       Reporter:  ncohen             |        Owner:  bhutz
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.5
      Component:  algebraic          |   Resolution:
  geometry                           |    Merged in:
       Keywords:                     |    Reviewers:  Joao Alberto de Faria
        Authors:  Ben Hutz           |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  4d6c87e5d2ba91cb16156f0dfb266180e0af9e2f
  u/bhutz/ticket/17427               |     Stopgaps:
   Dependencies:  #17433             |
-------------------------------------+-------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 On 32-bit:
 {{{
 sage -t --long src/sage/schemes/projective/projective_point.py
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 374, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
 Failed example:
     hash(P([1,1]))
 Expected nothing
 Got:
     1265304440
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 376, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
 Failed example:
     hash(P.point([2,2], False))
 Expected nothing
 Got:
     1265304440
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 385, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
 Failed example:
     hash(P([1+w, 2]))
 Expected nothing
 Got:
     -609701421
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 387, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
 Failed example:
     hash(P([2, 1-w]))
 Expected nothing
 Got:
     -609701421
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 393, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
 Failed example:
     hash(P([2,5]))
 Expected nothing
 Got:
     -479010389
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 1140, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_field.__hash__
 Failed example:
     hash(P([1/2, 1]))
 Expected nothing
 Got:
     -1741117121
 **********************************************************************
 File "src/sage/schemes/projective/projective_point.py", line 1142, in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_field.__hash__
 Failed example:
     hash(P.point([1, 2], False))
 Expected nothing
 Got:
     -1741117121
 **********************************************************************
 2 items had failures:
    2 of   4 in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_field.__hash__
    5 of  12 in
 
sage.schemes.projective.projective_point.SchemeMorphism_point_projective_ring.__hash__
     [302 tests, 7 failures, 0.60 s]
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17427#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to