[SciPy-Dev] --full-trace
Matti Picus
matti.picus at gmail.com
Fri Dec 18 07:39:21 EST 2020
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 at gmail.com
> <mailto:andyfaff at 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 at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
More information about the SciPy-Dev
mailing list