On 02/20/2017 10:00 AM, Travis Scrimshaw wrote: > Could we get a little more context for your problem? In particular, is > foo.py included in the Sage source tree or is it something that you are > building separately? If it is the former, have you tried "from path.to.foo > import bar", where the path is starting from $SAGE_ROOT/src? >
It's outside of the sage tree. My original message contains a minimal reproducible test case (from anywhere in the filesystem): $ mkdir ~/sage-temp && cd ~/sage-temp $ cat <<EOF > foo.py from sage.all import * def foo(): """ Returns ``True``. TESTS:: sage: foo() True """ return True EOF $ sage -t foo.py # works $ touch __init__.py $ sage -t foo.py # fails -- 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.