I've seen that once or twice before, but never been able to reproduce it. The cputime attribute is not set during init in the doctest framework, so there might be a race (perhaps the doctest was killed before it started?). No idea how the other one would be related.
On Sunday, October 12, 2014 6:24:28 PM UTC+1, William Stein wrote: > > On Sun, Oct 12, 2014 at 8:47 AM, Volker Braun <vbrau...@gmail.com > <javascript:>> wrote: > > Use get git "develop" branch! Alternatively, download > > http://sage.sagedev.org/home/release/sage-6.4.beta5.tar.gz > > On an opteron ubuntu 14.04 SageMathCloud node with 12 cores, "make > ptestlong" takes about 60 minutes from extracting the above tarball > and results in only the following two errors. However, re-running > either files' test alone does *not* show any problems, so that it > happens must have to do with not restarting sage between testing files > (?), or the heavy load of running many tests in parallel. > > > ---------------------------------------------------------------------- > sage -t --long --warn-long 62.7 src/sage/doctest/test.py # 1 doctest > failed > sage -t --long --warn-long 62.7 src/sage/combinat/combinat.py # 1 > doctest failed > ---------------------------------------------------------------------- > > sage -t --long --warn-long 62.7 src/sage/doctest/test.py > ********************************************************************** > File "src/sage/doctest/test.py", line 180, in sage.doctest.test > Failed example: > subprocess.call(["sage", "-t", "--warn-long", "0", > "interrupt.rst"], **kwds) # long time > Expected: > Running doctests... > Doctesting 1 file. > sage -t --warn-long 0.0 interrupt.rst > Killing test interrupt.rst > ---------------------------------------------------------------------- > Doctests interrupted: 0/1 files tested > ---------------------------------------------------------------------- > ... > 128 > Got: > Running doctests with ID 2014-10-12-16-40-04-ea21e0fa. > Doctesting 1 file. > sage -t --warn-long 0.0 interrupt.rst > Killing test interrupt.rst > ********************************************************************** > File "interrupt.rst", line 6, in sage.doctest.tests.interrupt > Failed example: > time.sleep(10) > Exception raised: > Traceback (most recent call last): > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > > line 488, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > > line 853, in compile_and_execute > timer.stop().annotate(example) > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/doctest/util.py", > > > line 133, in stop > self.cputime = cputime(self.cputime) > AttributeError: Timer instance has no attribute 'cputime' > ---------------------------------------------------------------------- > Doctests interrupted: 0/1 files tested > ---------------------------------------------------------------------- > Total time for all tests: 0.1 seconds > cpu time: 0.0 seconds > cumulative wall time: 0.0 seconds > 128 > ********************************************************************** > 1 item had failures: > 1 of 45 in sage.doctest.test > [44 tests, 1 failure, 94.54 s] > > > sage -t --long --warn-long 62.7 src/sage/combinat/combinat.py > ********************************************************************** > File "src/sage/combinat/combinat.py", line 745, in > sage.combinat.combinat.stirling_number2 > Failed example: > for n in Subsets(range(100,200), 5).random_element(): > for k in Subsets(range(n), 5).random_element(): > s_sage = stirling_number2(n,k) > s_maxima = stirling_number2(n,k, algorithm = "maxima") > s_gap = stirling_number2(n,k, algorithm = "gap") > if not (s_sage == s_maxima and s_sage == s_gap): > print "Error with n<200" > Exception raised: > Traceback (most recent call last): > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > > line 488, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > > line 851, in compile_and_execute > exec(compiled, globs) > File "<doctest sage.combinat.combinat.stirling_number2[23]>", > line 4, in <module> > s_maxima = stirling_number2(n,k, algorithm = "maxima") > File > "/scratch/wstein/sage-6.4.beta5/local/lib/python2.7/site-packages/sage/combinat/combinat.py", > > > line 779, in stirling_number2 > return ZZ(maxima.eval("stirling2(%s,%s)"%(ZZ(n),ZZ(k)))) > File "sage/structure/parent.pyx", line 1096, in > sage.structure.parent.Parent.__call__ > (build/cythonized/sage/structure/parent.c:9603) > File "sage/structure/coerce_maps.pyx", line 95, in > sage.structure.coerce_maps.DefaultConvertMap_unique._call_ > (build/cythonized/sage/structure/coerce_maps.c:4256) > File "sage/structure/coerce_maps.pyx", line 90, in > sage.structure.coerce_maps.DefaultConvertMap_unique._call_ > (build/cythonized/sage/structure/coerce_maps.c:4154) > File "sage/rings/integer.pyx", line 717, in > sage.rings.integer.Integer.__init__ > (build/cythonized/sage/rings/integer.c:7982) > TypeError: unable to convert x > (="__SAGE_SYNCHRO_MARKER_1188395890") to an integer > ********************************************************************** > 1 item had failures: > 1 of 27 in sage.combinat.combinat.stirling_number2 > [396 tests, 1 failure, 14.48 s] > > > William > > -- > William Stein > Professor of Mathematics > University of Washington > http://wstein.org > -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To post to this group, send email to sage-release@googlegroups.com. Visit this group at http://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.