Ticket #4393: sage-4393.patch

File sage-4393.patch, 906 bytes (added by was, 14 years ago)
  • sage/modules/free_module.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1225396004 25200
    # Node ID 3378de9aaeb492d9a6334a91ee81d9db8a51af62
    # Parent  c4a14e85215fbd049c9e1882a94f1823db35bb6a
    trac #4393 -- magma related optional doctest failure in sage/structure/element.pyx
    
    diff -r c4a14e85215f -r 3378de9aaeb4 sage/modules/free_module.py
    a b  
    15691569            [ 0 -1]
    15701570        """
    15711571        K = self.base_ring()._magma_init_()
    1572         if self._inner_product_matrix:
     1572        if not self._inner_product_is_dot_product():
    15731573            s = "RSpace(%s, %s, %s)"%(K, self.__rank,
    1574                 self._inner_product_matrix._magma_init_())
     1574                self.inner_product_matrix()._magma_init_())
    15751575        else:
    15761576            s = "RSpace(%s, %s)"%(K, self.__rank)
    15771577