Ticket #11395: trac_11395_doctest_fix.patch

File trac_11395_doctest_fix.patch, 1.1 KB (added by vbraun, 7 years ago)

Initial patch

  • sage/rings/polynomial/groebner_fan.py

    # HG changeset patch
    # User Volker Braun <vbraun@stp.dias.ie>
    # Date 1351016479 -3600
    # Node ID 40fbfde5439cd5540616251c0d3bc73c11e3750c
    # Parent  064ba9d34dc911d27e738ad2a3c72bca5149b9cc
    Trivial doctest fix
    
    diff --git a/sage/rings/polynomial/groebner_fan.py b/sage/rings/polynomial/groebner_fan.py
    a b  
    501501            sage: GF = I.groebner_fan()
    502502            sage: PF = GF.tropical_intersection()
    503503            sage: fan = PF.to_RationalPolyhedralFan()
    504             sage: [q.facet_normals() for q in fan]
     504            sage: [tuple(q.facet_normals()) for q in fan]
    505505            [(M(0, -1, 0), M(-1, 0, 0)), (M(0, 0, -1), M(-1, 0, 0)), (M(0, 0, 1), M(-1, 0, 0)), (M(0, 1, 0), M(-1, 0, 0)), (M(0, 0, -1), M(0, -1, 0)), (M(0, 0, 1), M(0, -1, 0)), (M(0, 1, 0), M(0, 0, -1)), (M(0, 1, 0), M(0, 0, 1)), (M(1, 0, 0), M(0, -1, 0)), (M(1, 0, 0), M(0, 0, -1)), (M(1, 0, 0), M(0, 0, 1)), (M(1, 0, 0), M(0, 1, 0))]
    506506
    507507        Here we use the RationalPolyhedralFan's Gale_transform method on a tropical