Hey everyone,
   I just upgraded my version of Ubunutu from 16.04 LTS to 17.10, and I can 
no longer run doctests with 8.2.beta8:

travis@apricot:~/sage-build$ ./sage -t src/sage/combinat/partition.py 
too many failed tests, not using stored timings
Traceback (most recent call last):
  File "/home/travis/sage-build/src/bin/sage-runtests", line 127, in 
<module>
    err = DC.run()
  File 
"/home/travis/sage-build/local/lib/python2.7/site-packages/sage/doctest/control.py"
, line 1138, in run
    self.test_safe_directory()
  File 
"/home/travis/sage-build/local/lib/python2.7/site-packages/sage/doctest/control.py"
, line 609, in test_safe_directory
    .format(os.getcwd()))
RuntimeError: refusing to run doctests from the current directory 
'/home/travis/sage-build' since untrusted users could put files in this 
directory, making it unsafe to run Sage code from

I also tested this with version 8.1.beta3 I happen to also have on my 
system. I get an error message of the form

sys:1: RuntimeWarning: not adding directory '' to sys.path since it's 
writable by an untrusted group.
Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory

and then it seems to be very poorly handled after that. I also get:

travis@apricot:~/sage$ ./sage
sys:1: RuntimeWarning: not adding directory '' to sys.path since it's 
writable by an untrusted group.
Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory

which I do not get with 8.2.beta8.

Any ideas on how to fix this? Of course, I could change the permissions of 
the folder(s), but that feels like bringing a bazooka to a fist fight.

Thanks,
Travis

-- 
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.

Reply via email to