test for absence of infinite loop
tjreedy at udel.edu
Tue Jul 17 16:22:11 EDT 2018
On 7/17/2018 7:39 AM, Robin Becker wrote:
> well I understand the problem about not halting. However as you point
> out in a fixed case I know that the test should take fractions of a
> second to complete.
If nothing else, you can easily add
xyz(args) # Former infinite loop
I assume that your test runner has some time limit at some level of
granularity. You may be able to add a timeout for a particular test.
Terry Jan Reedy
More information about the Python-list