title: PyUnit - How to unit test a method that runs into an infinite loop for some input?
body: <p>A post in 2011 answered this question for NUnit:
  <a href="https://stackoverflow.com/questions/5959343/how-to-unit-test-a-method-that-runs-into-an-infinite-loop-for-some-input/5968281#5968281">How to unit test a method that runs into an infinite loop for some input?</a></p>
  
  <p>Is there a similar TimeoutAttribute in PyUnit that I can use in the same fashion?</p>
  
  <p>I did some searching and found "Duration", but that didn't seem the same.</p>