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

def test_xyz_completes(self):
        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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to