If a test is hanging somewhere how do I run a full trace on it using runtests.py? pytest argument is --full-trace, which should print a stack trace if ctrl-C is pressed. e.g. python runtests.py -t <mytest> --full-trace doesn't work/ -- _____________________________________ Dr. Andrew Nelson _____________________________________
On Fri, Dec 18, 2020 at 12:10 PM Andrew Nelson <andyfaff@gmail.com> wrote:
If a test is hanging somewhere how do I run a full trace on it using runtests.py? pytest argument is --full-trace, which should print a stack trace if ctrl-C is pressed.
e.g.
python runtests.py -t <mytest> --full-trace
doesn't work/
That should be the right invocation. There may be a bug in the `extra_argv` handling in runtests.py. It looks like it's stripping off one of the two dashes, which doesn't look quite right. If it works with python -c "import scipy; scipy.test(extra_argv=['--full-trace'])" then it should work with runtests.py as well (unless there's a bug as mentioned above). Cheers, Ralf
For numpy's runtest you need an extra `--` to set off the args to be passed as-is to pytest, so something like python runtests.py -t <mytest> -- --full-trace Matti On 12/18/20 2:17 PM, Ralf Gommers wrote:
On Fri, Dec 18, 2020 at 12:10 PM Andrew Nelson <andyfaff@gmail.com <mailto:andyfaff@gmail.com>> wrote:
If a test is hanging somewhere how do I run a full trace on it using runtests.py? pytest argument is --full-trace, which should print a stack trace if ctrl-C is pressed.
e.g.
python runtests.py -t <mytest> --full-trace
doesn't work/
That should be the right invocation. There may be a bug in the `extra_argv` handling in runtests.py. It looks like it's stripping off one of the two dashes, which doesn't look quite right.
If it works with
python -c "import scipy; scipy.test(extra_argv=['--full-trace'])"
then it should work with runtests.py as well (unless there's a bug as mentioned above).
Cheers, Ralf
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@python.org https://mail.python.org/mailman/listinfo/scipy-dev
participants (3)
-
Andrew Nelson -
Matti Picus -
Ralf Gommers