Ticket #11234: trac_11234_extra_doctest.patch

File trac_11234_extra_doctest.patch, 811 bytes (added by fwclarke, 11 years ago)

Apply both patches

  • sage/rings/number_field/class_group.py

    # HG changeset patch
    # User Francis Clarke <francis.w.clarke@gmail.com>
    # Date 1303722781 -3600
    # Node ID e82f2e84f3e06005db7b5498972d898ef3944d37
    # Parent  1543815dba15d7d7963cbdbc84eaf257a2da9d54
    #11234: extra doctest
    
    diff -r 1543815dba15 -r e82f2e84f3e0 sage/rings/number_field/class_group.py
    a b  
    296296            Trivial principal fractional ideal class
    297297            sage: c^1000
    298298            Fractional ideal class (2, a)
     299            sage: (c^2)^2
     300            Fractional ideal class (2, a)
    299301        """
    300302        # We use MonoidElement's __pow__ routine, since that does
    301303        # repeated squaring, and hence the ideal gets reduced as