answered 4 years ago
This is apparently a Python issue, not a Sage issue. Try
PYTHONWARNINGS=always sage deprecation.sage
from a shell prompt. See https://docs.python.org/3/library/warnings.html#default-warning-filter, also.