Dear Maarten Derickx (and Sage developers) thank you for reply.
Using: sage -t /home/jpedro/sage/local/lib/python2.6/site-packages/ meg/paramparse.py causes "ImportError" as before but if I use sage -python -m doctest paramparse.py using ">>>" instead of "sage:" everything works on each module. The problem occurs in this small example: $ sage -t m1.py WHERE: FILE m1.py ---------------- from sage.all_cmdline import * # import sage library from m2 import funfun def square(n): """ Return the square of n. EXAMPLES:: sage: square(2) 8 """ return n**2 * funfun(n) FILE m2.py ------------------------- def funfun(n): return n Again, something wrong with "import m2". (Sage 4.7) I believe that "sage -t" works well only: (1) for a single file. (2) for a package that is being build inside sage structure. I'm going to post this for more people to read it since this is a reply of a reply. Yet, if anything occurs please let me know. Thanks, Pedro -- 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