On Thursday, September 28, 2017 at 6:54:59 AM UTC+1, David Roe wrote: > > I'm not sure, but maybe you can find the iPython call which is doing the > completion. Something like > > sage: from IPython import get_ipython > sage: ip = get_ipython() > sage: completer = ip.Completer > sage: completer.complete('sage.interfaces.maxima_lib import') >
basically, the crash comes from importing being done in a separate thread rather than the main thread. So an alternative way to trigger this would be to use the appropriate multprocessing/threading module. > > But this doesn't work for me. > David > > On Wed, Sep 27, 2017 at 9:55 PM, Dima Pasechnik <dim...@gmail.com > <javascript:>> wrote: > >> How does one write a doctest for tab completion on the command line? >> I don't care for the output, I just need to check there is no crash, as >> in https://trac.sagemath.org/ticket/23700#comment:11 >> >> sage: from sage.libs.ecl import * >> sage: sage.interfaces.maxima_lib import <TAB> >> >> >> causes a segfault in ECL for me. >> >> Thanks >> Dima >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+...@googlegroups.com <javascript:>. >> To post to this group, send email to sage-...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.