Ticket #9944: 9944-poly-cat-doctests.patch

File 9944-poly-cat-doctests.patch, 1.5 KB (added by robertwb, 9 years ago)
  • sage/categories/primer.py

    diff -r c09b20c04ea6 -r 4e255986dd9f 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 c09b20c04ea6 -r 4e255986dd9f 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 c09b20c04ea6 -r 4e255986dd9f 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,