# HG changeset patch
# User Martin Raum <Martin.Raum@matha.rwthaachen.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


181  181  sage: ZZ.categories() 
182  182  [Category of euclidean domains, 
183  183  Category of principal ideal domains, 
 184  Category of unique factorization domains, 
184  185  Category of gcd domains, 
185  186  Category of integral domains, 
186  187  Category of commutative rings, 
diff r 662b9a990428 r 4d9f507a1c1d sage/misc/functional.py
a

b


111  111  sage: R.base_field() 
112  112  Traceback (most recent call last): 
113  113  ... 
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' 
115  115  """ 
116  116  try: 
117  117  return x.base_field() 
diff r 662b9a990428 r 4d9f507a1c1d sage/structure/category_object.pyx
a

b


168  168  sage: ZZ.categories() 
169  169  [Category of euclidean domains, 
170  170  Category of principal ideal domains, 
 171  Category of unique factorization domains, 
171  172  Category of gcd domains, 
172  173  Category of integral domains, 
173  174  Category of commutative rings, 