While working on http://trac.sagemath.org/ticket/15995 I am trying to use Python command line options (like -3, -Q or -W) to trigger division warnings.
This should give helpful hits: python -3 test-python3-warnings.py *test**-python3-warnings.py:1: DeprecationWarning: classic int** division* print "4 / 3 ==", 4 / 3 4 / 3 == 1 4. / 3 == 1.33333333333 4 // 3 == 1 But ~/sage-6.2.beta4$ ./sage -3 -t -p --all --long --logfile=logs/ptestlong-warn -3.log does not work: sage-run received unknown option: -3 usage: sage [options] Try 'sage -h' for more information. Is there a "standard" way? Or where should I patch a Sage script? Or how use environment variable PYTHONWARNINGS? -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.