Ticket #9944: trac-9944-poly_cat_doctests.patch

File trac-9944-poly_cat_doctests.patch, 1.8 KB (added by mraum, 8 years ago)
  • sage/categories/primer.py

    # HG changeset patch
    # User Martin Raum <Martin.Raum@matha.rwth-aachen.de>
    # Date 1301617785 -7200
    # Node ID 4d9f507a1c1da96d7d85b33e09907409fb420512
    # Parent  662b9a990428101593d0aaa49c8154df2a90549b
    #9944: categories for polynomial rings
    Fix some doctests that need to be changed due to the first patch for this ticket.
    
    diff -r 662b9a990428 -r 4d9f507a1c1d sage/categories/primer.py
    a b  
    181181    sage: ZZ.categories()
    182182    [Category of euclidean domains,
    183183     Category of principal ideal domains,
     184     Category of unique factorization domains,
    184185     Category of gcd domains,
    185186     Category of integral domains,
    186187     Category of commutative rings,
  • sage/misc/functional.py

    diff -r 662b9a990428 -r 4d9f507a1c1d sage/misc/functional.py
    a b  
    111111        sage: R.base_field()
    112112        Traceback (most recent call last):
    113113        ...
    114         AttributeError: 'PolynomialRing_dense_mod_p' object has no attribute 'base_field'
     114        AttributeError: 'PolynomialRing_dense_mod_p_with_category' object has no attribute 'base_field'
    115115    """
    116116    try:
    117117        return x.base_field()
  • sage/structure/category_object.pyx

    diff -r 662b9a990428 -r 4d9f507a1c1d sage/structure/category_object.pyx
    a b  
    168168            sage: ZZ.categories()
    169169            [Category of euclidean domains,
    170170             Category of principal ideal domains,
     171             Category of unique factorization domains,
    171172             Category of gcd domains,
    172173             Category of integral domains,
    173174             Category of commutative rings,