Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33256: buffer.py: make files readonly only when possible
After #31306 we have doctest failure on sage-on-distros because files have been moved out of `SAGE_EXTCODE`. In `sage/repl/rich_output/buffer.py` files are made readonly with `chmod` so they are immutable during the process. Unfortunately `chmod` fails when trying to act on system installed files as a regular user. There is a safety for files in `SAGE_EXTCODE`, this is a useless complication and should be replaced by a `try` block. URL: https://trac.sagemath.org/33256 Reported by: fbissey Ticket author(s): François Bissey Reviewer(s): Antonio Rojas
- Loading branch information