# HG changeset patch
# User David Roe <roed@math.harvard.edu>
# Date 1327970559 28800
# Node ID 3f38a834d17470e27ebb403dc89d96e81d65ebef
# Parent 2fe936993b37b7d7512ab2cb11faf5d9d0c364fc
#12393: reset state of sage after a few doctests that change it.
diff git a/sage/categories/modules_with_basis.py b/sage/categories/modules_with_basis.py
a

b


410  410  sage: A = C.example(); A.rename("A") 
411  411  sage: A.tensor(A,A) 
412  412  A # A # A 
 413  sage: A.rename(None) 
413  414  """ 
414  415  return parents[0].Tensor(parents, category = tensor.category_from_parents(parents)) 
415  416  
diff git a/sage/rings/number_field/number_field_ideal.py b/sage/rings/number_field/number_field_ideal.py
a

b


233  233  sage: K.<a> = NumberField(x^4 + 3*x^2  17) 
234  234  sage: K.ideal([17*a,17,17,17*a])._latex_() 
235  235  '\\left(17\\right)' 
 236  
 237  TESTS: 
 238  
 239  Reset SMALL_DISC for continued testing:: 
 240  
 241  sage: sage.rings.number_field.number_field_ideal.SMALL_DISC = 1000000 
236  242  """ 
237  243  return '\\left(%s\\right)'%(", ".join(map(latex.latex, self._gens_repr()))) 
238  244  