Ticket #11725: trac_11725-fix_doctest_error.reviewer.patch

File trac_11725-fix_doctest_error.reviewer.patch, 779 bytes (added by leif, 10 years ago)

Reviewer patch. Fixes doctest error in multi_polynomial_element.py. Apply on top of the other patch.

  • sage/rings/polynomial/multi_polynomial_element.py

    # HG changeset patch
    # User Leif Leonhardy <not.really@online.de>
    # Date 1316221075 -7200
    # Node ID a5ed516f51afb8be00f39de6627a17945f277643
    # Parent  fa1d834e243bcd837207cca22b1f165039f55491
    #11725 Reviewer patch: Fix doctest error in multi_polynomial_element.py due to changed behaviour of QQbar.random_element().
    
    diff --git a/sage/rings/polynomial/multi_polynomial_element.py b/sage/rings/polynomial/multi_polynomial_element.py
    a b  
    9999       
    100100            sage: P.<x,y,z> = PolynomialRing(QQbar)
    101101            sage: x + QQbar.random_element() # indirect doctest
    102             x - 2
     102            x + 4
    103103        """
    104104        return "%s"%self.__element
    105105