Ticket #9652: smallfix1-arith_valuation-doctest.2.3.patch

File smallfix1-arith_valuation-doctest.2.3.patch, 653 bytes (added by lftabera, 11 years ago)

additional doctest

  • sage/rings/arith.py

    # HG changeset patch
    # User Luis Felipe Tabera Alonso <lftabera@yahoo.es>
    # Parent b40cafb8924bdda7b2fa4145c8546648e0a0e646
    #9652 Unnecesary and buggy code in arith.py doctest
    
    diff -r b40cafb8924b sage/rings/arith.py
    a b  
    698698        2
    699699        sage: valuation(4r,2r)
    700700        2
     701        sage: valuation(1r,1r)
     702        Traceback (most recent call last):
     703        ...
     704        ValueError: You can only compute the valuation with respect to a integer larger than 1.
    701705    """
    702706    if isinstance(m,(int,long)):
    703707        m=ZZ(m)