Ticket #12393: 12393.patch

File 12393.patch, 1.3 KB (added by roed, 9 years ago)
  • sage/categories/modules_with_basis.py

    # 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  
    410410                sage: A = C.example(); A.rename("A")
    411411                sage: A.tensor(A,A)
    412412                A # A # A
     413                sage: A.rename(None)
    413414            """
    414415            return parents[0].Tensor(parents, category = tensor.category_from_parents(parents))
    415416
  • sage/rings/number_field/number_field_ideal.py

    diff --git a/sage/rings/number_field/number_field_ideal.py b/sage/rings/number_field/number_field_ideal.py
    a b  
    233233            sage: K.<a> = NumberField(x^4 + 3*x^2 - 17)
    234234            sage: K.ideal([17*a,17,17,17*a])._latex_()
    235235            '\\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
    236242        """
    237243        return '\\left(%s\\right)'%(", ".join(map(latex.latex, self._gens_repr())))
    238244