Ticket #11521: trac_11521_doctestfix.patch

File trac_11521_doctestfix.patch, 2.5 KB (added by nbruin, 9 years ago)

small fixes

  • sage/libs/singular/ring.pyx

    # HG changeset patch
    # User Nils Bruin <nbruin@sfu.ca>
    # Date 1349476265 25200
    # Node ID 60356cdb5bcfa2a445faf9ad1aa0da844313571a
    # Parent  4d9036b572cfca4d8cd874125774a65c73d1d754
    #11521: fixes and backports from #13447 to make doctests pass
    
    diff --git a/sage/libs/singular/ring.pyx b/sage/libs/singular/ring.pyx
    a b cdef ring *singular_ring_reference(ring  
    488488        sage: del P
    489489        sage: _ = gc.collect()
    490490        sage: ring_ptr in ring_refcount_dict
    491         False
     491        True
    492492    """
    493493    if existing_ring==NULL:
    494494        raise ValueError('singular_ring_reference(ring*) called with NULL pointer.')
  • sage/modular/modsym/ambient.py

    diff --git a/sage/modular/modsym/ambient.py b/sage/modular/modsym/ambient.py
    a b class ModularSymbolsAmbient(space.Modula 
    13441344       
    13451345        EXAMPLES::
    13461346       
    1347             sage: ModularSymbols(20,2).boundary_space()
     1347            sage: M = ModularSymbols(20, 2)
     1348            sage: B = M.boundary_space(); B
    13481349            Space of Boundary Modular Symbols for Congruence Subgroup Gamma0(20) of weight 2 and over Rational Field
    1349             sage: ModularSymbols(20,2).dimension()
     1350            sage: M.cusps()
     1351            [Infinity, 0, -1/4, 1/5, -1/2, 1/10]
     1352            sage: M.dimension()
    13501353            7
    1351             sage: ModularSymbols(20,2).boundary_space().dimension()
     1354            sage: B.dimension()
    13521355            6
    13531356        """
    13541357        raise NotImplementedError
  • sage/rings/polynomial/multi_polynomial_libsingular.pyx

    diff --git a/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/sage/rings/polynomial/multi_polynomial_libsingular.pyx
    a b cdef class MPolynomialRing_libsingular(M 
    421421            sage: del q
    422422            sage: gc.collect() # random output
    423423            sage: len(ring_refcount_dict) == n   
    424             True
     424            False
    425425        """
    426426        return self
    427427
  • sage/rings/polynomial/polynomial_zz_pex.pyx

    diff --git a/sage/rings/polynomial/polynomial_zz_pex.pyx b/sage/rings/polynomial/polynomial_zz_pex.pyx
    a b cdef cparent get_cparent(parent) except? 
    2828    if parent is None:
    2929        return NULL
    3030    cdef ntl_ZZ_pEContext_class c
    31     c = parent._modulus
     31    try:
     32        c = parent._modulus
     33    except AttributeError:
     34        return NULL
    3235    return &(c.x)
    3336
    3437# first we include the definitions