[TIP] aborting tests that take too long

Mark Sienkiewicz sienkiew at stsci.edu
Thu Nov 10 07:28:07 PST 2011


I have a general problem with tests that deadlock, go into an infinite loop, or otherwise just run for way too long.  I need to do something about this because it is starting to become a problem in my CI system.

When a test takes too long, I don't just want the test to fail if it takes too long -- I want it to be forced to stop running.  Is there some way to do this in py.test or nose?

Mark S.




More information about the testing-in-python mailing list