Is it possible that a system component is contaminating the doctest? I get a similar failure from a sage-on-gentoo install where the failure seems to point to gmp?
On Thursday, December 31, 2015 at 12:03:25 PM UTC-6, Steven Trogdon wrote: > > I have the following failure: > > ./sage -t src/sage/rings/integer.pyx > too many failed tests, not using stored timings > Running doctests with ID 2015-12-31-11-59-48-9f43f0a3. > Git branch: develop > Using --optional=mpir,python2,sage > Doctesting 1 file. > sage -t src/sage/rings/integer.pyx > ********************************************************************** > File "src/sage/rings/integer.pyx", line 2622, in > sage.rings.integer.Integer.divisors > Failed example: > 6.divisors() > Exception raised: > Traceback (most recent call last): > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > line 496, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", > > line 858, in compile_and_execute > exec(compiled, globs) > File "<doctest sage.rings.integer.Integer.divisors[1]>", line 1, in > <module> > Integer(6).divisors() > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py", > > line 745, in displayhook > plain_text, rich_output = self._rich_output_formatter(obj, dict()) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py", > > line 610, in _rich_output_formatter > plain_text = self._backend.plain_text_formatter(obj, > **rich_repr_kwds) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/backend_base.py", > > line 305, in plain_text_formatter > plain_text = self._apply_pretty_printer(SagePrettyPrinter, obj) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/backend_base.py", > > line 250, in _apply_pretty_printer > printer.pretty(obj) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/display/pretty_print.py", > > line 147, in pretty > ok = representation(obj, self, cycle) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/sage/repl/display/fancy_repr.py", > > line 157, in __call__ > pretty_repr(obj, p, cycle) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/IPython/lib/pretty.py", > > line 550, in inner > p.text(',') > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python2.7/site-packages/IPython/lib/pretty.py", > > line 211, in text > self.output.write(obj) > File > "/64bitdev/storage/sage-git_develop/sage/local/lib/python/StringIO.py", > line 213, in write > _complain_ifclosed(self.closed) > File "sage/ext/interrupt/interrupt.pyx", line 204, in > sage.ext.interrupt.interrupt.sage_python_check_interrupt > (/64bitdev/storage/sage-git_develop/sage/src/build/cythonized/sage/ext/interrupt/interrupt.c:1904) > sig_check() > File "sage/ext/interrupt/interrupt.pyx", line 91, in > sage.ext.interrupt.interrupt.sig_raise_exception > (/64bitdev/storage/sage-git_develop/sage/src/build/cythonized/sage/ext/interrupt/interrupt.c:970) > raise AlarmInterrupt > AlarmInterrupt > ********************************************************************** > 1 item had failures: > 1 of 21 in sage.rings.integer.Integer.divisors > [1055 tests, 1 failure, 11.65 s] > ---------------------------------------------------------------------- > sage -t src/sage/rings/integer.pyx # 1 doctest failed > ---------------------------------------------------------------------- > Total time for all tests: 12.2 seconds > cpu time: 5.2 seconds > cumulative wall time: 11.6 seconds > > The failure is not always the same. Sometimes the failed example is > '6.divisors()' and sometimes it's '28.divisors()`. And on other tries > something else fails in a quite nasty fashion. > > -- 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 https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.