2010/5/14 François Bissey <f.r.bis...@massey.ac.nz>:
> We had a long standing problem in both Gentoo and Mandriva
> with the following test
> sage -t -force_lib "devel/sage/sage/combinat/iet/strata.py"
> which is failing for us using the system python shipped with our
> distributions.
> As it turns out it is because the python shipped in our system includes
> the patch solving:
> http://bugs.python.org/issue7491
> The patches have been merged in 2.6.5 and 2.7 and they are included
> in python-2.6.4 shipped by a number of distros.
>
> This is a friendly warning that it will be an issue for the next python
> upgrade.

  The problem François tells is about is this error:
-%<-
sage -t  -force_lib "devel/sage/sage/combinat/iet/strata.py"
 [?1034h**********************************************************************
File "/usr/share/sage/devel/sage/sage/combinat/iet/strata.py", line 1331:
    sage: c1 != c2_hyp
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sage/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sage/local/bin/sagedoctest.py", line 38, in
run_one_example
        OrigDocTestRunner.run_one_example(self, test, example,
filename, compileflags)
      File "/usr/share/sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_37[13]>", line 1, in <module>
        c1 != c2_hyp###line 1331:
    sage: c1 != c2_hyp
      File "/usr/lib64/python2.6/site-packages/sage/combinat/iet/strata.py",
line 1347, in __cmp__
        return type.__cmp__(type(self),type(other))
    AttributeError: type object 'type' has no attribute '__cmp__'
**********************************************************************
File "/usr/share/sage/devel/sage/sage/combinat/iet/strata.py", line 1333:
    sage: c2_hyp != c2_odd
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sage/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sage/local/bin/sagedoctest.py", line 38, in
run_one_example
        OrigDocTestRunner.run_one_example(self, test, example,
filename, compileflags)
      File "/usr/share/sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_37[14]>", line 1, in <module>
        c2_hyp != c2_odd###line 1333:
    sage: c2_hyp != c2_odd
      File "/usr/lib64/python2.6/site-packages/sage/combinat/iet/strata.py",
line 1347, in __cmp__
        return type.__cmp__(type(self),type(other))
    AttributeError: type object 'type' has no attribute '__cmp__'
**********************************************************************
1 items had failures:
   2 of  15 in __main__.example_37
***Test Failed*** 2 failures.
For whitespace errors, see the file /home/pcpa/.sage//tmp/.doctest_strata.py
         [4.1 s]
-%<-

> Francois

Paulo

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to