# Ticket #9054: trac_9054-doctest.patch

File trac_9054-doctest.patch, 2.8 KB (added by mderickx, 11 years ago)

Aplies to sage 4.4.4 after 1-12 patch and it also needs the #9054 patch trac_9094-sqrt-mderickx.patch

• ## sage/categories/all.py

```# HG changeset patch
# User Maarten Derickx <m.derickx.student@gmail.com>
# Date 1279364025 -7200
# Node ID 34508590063dc7103ae515af67e6e8bef2263580
# Parent  45cb12f71be4aa5caefdf85a719c514fb680c0d4
This fixes all of the doctest failures in 9054. Depends on 9094

diff -r 45cb12f71be4 -r 34508590063d sage/categories/all.py```
 a from quotient_fields import QuotientFields from finite_fields import FiniteFields from number_fields import NumberFields from function_fields import FunctionFields # modules from left_modules import LeftModules
• ## sage/matrix/matrix2.pyx

`diff -r 45cb12f71be4 -r 34508590063d sage/matrix/matrix2.pyx`
 a sage: C.echelon_form() Traceback (most recent call last): ... NotImplementedError: Echelon form not implemented over 'Univariate Polynomial Ring in x over Integer Ring'. NotImplementedError: Ideal Ideal (2, x + 1) of Univariate Polynomial Ring in x over Integer Ring not principal Echelon form not implemented over 'Univariate Polynomial Ring in x over Integer Ring'. sage: C = matrix(3,[2,x,x^2,x+1,3-x,-1,3,2,1/2]) sage: C.echelon_form() [                               2                                x                              x^2]
• ## sage/modules/free_module.py

`diff -r 45cb12f71be4 -r 34508590063d sage/modules/free_module.py`
 a if len(B) == 0: return 1 d = B[0].denominator() if type(d) == int: d = sage.rings.integer.Integer(d) for x in B[1:]: d = d.lcm(x.denominator()) return d
• ## sage/rings/fraction_field_element.pyx

`diff -r 45cb12f71be4 -r 34508590063d sage/rings/fraction_field_element.pyx`
 a (other).__denominator, self.__denominator*(other).__numerator) def valuation(self): def valuation(self,v=None): """ Return the valuation of self, assuming that the numerator and denominator have valuation functions defined on them. sage: f.valuation() -1 """ return self.__numerator.valuation() - self.__denominator.valuation() return self.__numerator.valuation(v) - self.__denominator.valuation(v) def __nonzero__(self): """