Ticket #7758: sagelib_7758-part2.patch

File sagelib_7758-part2.patch, 932 bytes (added by William Stein, 13 years ago)
  • sage/numerical/mip.pyx

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1261675881 18000
    # Node ID 90800caa65096c932806c7c392e62800683887d0
    # Parent  855d6c65168f4cbd13cce5140c8a3b273d5b0c7c
    trac 7758 -- part 2 -- doctest failure on OS X 10.5 intel due to randomization
    
    diff -r 855d6c65168f -r 90800caa6509 sage/numerical/mip.pyx
    a b  
    389389        for (c,min,max) in self.constraints():
    390390            value += "\n  " + (str(min)+" <= " if min!=None else "")+str(c)+(" <= "+str(max) if max!=None else "")
    391391        value += "\nVariables:"
    392         for v in sorted(self._variables.keys()):
     392        for _,v in sorted([(str(x),x) for x in self._variables.keys()]):
     393           
    393394            value += "\n  " + str(v) + " is"
    394395            if self.is_integer(v):
    395396                value += " an integer variable"