Ticket #12270: trac_12270_doc_fix.patch

File trac_12270_doc_fix.patch, 1011 bytes (added by JCooley, 8 years ago)

fixes an error that came up in testing

  • sage/rings/number_field/number_field.py

    # HG changeset patch
    # User Jenny Cooley <j.a.cooley@warwick.ac.uk>
    # Date 1374667948 -3600
    # Node ID 6ca8d5a51b4c4533bc1cfe46255bd907cb5a5caf
    # Parent  cc944241f5eb06d323f29eeb4c0643d9fadc5cff
    Trac 12270: corrects a documentation error
    
    diff --git a/sage/rings/number_field/number_field.py b/sage/rings/number_field/number_field.py
    a b  
    55815581            sage: K._coerce_from_other_number_field(b)
    55825582            Traceback (most recent call last):
    55835583            ...
    5584             ValueError: Cannot convert b to Number Field in a with defining polynomial x^3 + 2 (regardless of embeddings)
    5585 
     5584            TypeError: No compatible natural embeddings found for Number Field in a with defining polynomial x^3 + 2 and Number Field in b with defining polynomial x^2 + 1
     5585           
    55865586        Two number fields both containing `i`::
    55875587
    55885588            sage: K.<a> = NumberField(x^4 + 6*x^2 + 1, embedding = CC(-2.4*I))